-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Cleans up code in MinecraftVersion - Makes the Forge platform optional like NeoForge - Adds code to handle mods.toml vs neoforge.mods.toml depending on the game version
- Loading branch information
Showing
11 changed files
with
257 additions
and
108 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
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
40 changes: 40 additions & 0 deletions
40
src/templates/neoforge/src/main/resources/META-INF/neoforge.mods.toml
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,40 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[%NEOFORGE_LOADER_MAJOR%,)" | ||
#issueTrackerURL = "" | ||
license = "Insert License Here" | ||
|
||
[[mods]] | ||
modId = "%MOD_ID%" | ||
version = "${version}" | ||
displayName = "%MOD_NAME%" | ||
authors = "Me!" | ||
description = ''' | ||
This is an example description! Tell everyone what your mod is about! | ||
''' | ||
#logoFile = "" | ||
|
||
[[dependencies.%MOD_ID%]] | ||
modId = "neoforge" | ||
type = "required" | ||
versionRange = "[%NEOFORGE_MAJOR%,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.%MOD_ID%]] | ||
modId = "minecraft" | ||
type = "required" | ||
versionRange = "[%MINECRAFT_VERSION%,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
#% if architectury_api | ||
|
||
[[dependencies.%MOD_ID%]] | ||
modId = "architectury" | ||
type = "required" | ||
versionRange = "[%ARCHITECTURY_API_VERSION%,)" | ||
ordering = "AFTER" | ||
side = "BOTH" | ||
#% end | ||
|
||
[[mixins]] | ||
config = "%MOD_ID%.mixins.json" |
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
31 changes: 31 additions & 0 deletions
31
src/templates/neoforge_only/src/main/resources/META-INF/neoforge.mods.toml
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,31 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[%NEOFORGE_LOADER_MAJOR%,)" | ||
#issueTrackerURL = "" | ||
license = "Insert License Here" | ||
|
||
[[mods]] | ||
modId = "%MOD_ID%" | ||
version = "${version}" | ||
displayName = "%MOD_NAME%" | ||
authors = "Me!" | ||
description = ''' | ||
This is an example description! Tell everyone what your mod is about! | ||
''' | ||
#logoFile = "" | ||
|
||
[[dependencies.%MOD_ID%]] | ||
modId = "neoforge" | ||
type = "required" | ||
versionRange = "[%NEOFORGE_MAJOR%,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.%MOD_ID%]] | ||
modId = "minecraft" | ||
type = "required" | ||
versionRange = "[%MINECRAFT_VERSION%,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[mixins]] | ||
config = "%MOD_ID%.mixins.json" |
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
Oops, something went wrong.