Merge pull request #36 from MerchantPug/fix/modids

Replace examplemod with ${mod_id} in mod files.
This commit is contained in:
Jared 2023-11-29 13:19:51 -07:00 committed by GitHub
commit 25bcd220c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@
"sources": "https://github.com/FabricMC/fabric-example-mod" "sources": "https://github.com/FabricMC/fabric-example-mod"
}, },
"license": "${license}", "license": "${license}",
"icon": "assets/modid/${mod_id}.png", "icon": "assets/${mod_id}/${mod_id}.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [ "main": [

View File

@ -13,16 +13,16 @@ credits="${credits}" #optional
authors = "${mod_author}" #optional authors = "${mod_author}" #optional
description = '''${description}''' #mandatory (Supports multiline text) description = '''${description}''' #mandatory (Supports multiline text)
[[mixins]] [[mixins]]
config = "examplemod.mixins.json" config = "${mod_id}.mixins.json"
[[mixins]] [[mixins]]
config = "examplemod.neoforge.mixins.json" config = "${mod_id}.neoforge.mixins.json"
[[dependencies.${ mod_id }]] #optional [[dependencies.${mod_id}]] #optional
modId = "neoforge" #mandatory modId = "neoforge" #mandatory
mandatory = true #mandatory mandatory = true #mandatory
versionRange = "${neoforge_loader_version_range}" #mandatory versionRange = "${neoforge_loader_version_range}" #mandatory
ordering = "NONE" # The order that this dependency should load in relation to your mod, required to be either 'BEFORE' or 'AFTER' if the dependency is not mandatory ordering = "NONE" # The order that this dependency should load in relation to your mod, required to be either 'BEFORE' or 'AFTER' if the dependency is not mandatory
side = "BOTH" # Side this dependency is applied on - 'BOTH', 'CLIENT' or 'SERVER' side = "BOTH" # Side this dependency is applied on - 'BOTH', 'CLIENT' or 'SERVER'
[[dependencies.${ mod_id }]] [[dependencies.${mod_id}]]
modId = "minecraft" modId = "minecraft"
mandatory = true mandatory = true
versionRange = "${minecraft_version_range}" versionRange = "${minecraft_version_range}"