-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not require version & author when loading modpack - fixes #62
- Loading branch information
1 parent
2886b61
commit dfc835c
Showing
2 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
discard """ | ||
cmd: "nim $target --hints:on -d:testing -d:ssl --nimblePath:tests/deps $options $file" | ||
joinable: false | ||
batchable: false | ||
outputsub: ''' | ||
[Ξ] ALL MODS (1) | ||
ββ β’β Just Enough Items (JEI) - https://www.curseforge.com/minecraft/mc-mods/jei/files/3383205 | ||
ββ β’ The installed mod is compatible with the modpack's minecraft version. | ||
ββ β There is a newer version of this mod available. | ||
''' | ||
""" | ||
|
||
import json, os | ||
import cmd/list, term/color | ||
|
||
terminalColorEnabledSetting = false | ||
|
||
block: | ||
removeDir("./modpack/") | ||
|
||
let manifestJson = %* { | ||
"minecraft": { | ||
"version": "1.16.5", | ||
"modLoaders": [ | ||
{ | ||
"id": "forge-36.1.0", | ||
"primary": true | ||
} | ||
] | ||
}, | ||
"manifestType": "minecraftModpack", | ||
"overrides": "overrides", | ||
"manifestVersion": 1, | ||
"author": "testauthor", | ||
"name": "testmodpack123", | ||
"files": [ | ||
{ | ||
"projectID": 238222, | ||
"fileID": 3383205, | ||
"required": true, | ||
"__meta": { | ||
"name": "Just Enough Items (JEI)", | ||
"explicit": true, | ||
"dependencies": [] | ||
} | ||
} | ||
] | ||
} | ||
|
||
createDir("./modpack") | ||
writeFile("./modpack/manifest.json", manifestJson.pretty) | ||
paxList(status = true, info = false) |