From 11c9325a4e9f09b1cff51f03a6ae56265838b14b Mon Sep 17 00:00:00 2001 From: Micle Date: Fri, 1 May 2026 18:52:17 +0100 Subject: [PATCH] Ported mods.toml. --- src/main/resources/META-INF/mods.toml | 30 ------------- .../resources/META-INF/neoforge.mods.toml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 30 deletions(-) delete mode 100644 src/main/resources/META-INF/mods.toml create mode 100644 src/main/resources/META-INF/neoforge.mods.toml diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml deleted file mode 100644 index 2430641..0000000 --- a/src/main/resources/META-INF/mods.toml +++ /dev/null @@ -1,30 +0,0 @@ -modLoader = "javafml" -loaderVersion = "${loader_version_range}" -license = "${mod_license}" -issueTrackerURL="https://gitea.micle.dev/minecraft-mods/firefly_bush_backport/issues" - -[[mods]] -modId = "${mod_id}" -version = "${mod_version}" -displayName = "${mod_name}" -#updateJSONURL="https://change.me.example.invalid/updates.json" # https://docs.minecraftforge.net/en/latest/misc/updatechecker/ -#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" -logoFile="logo.jpg" -#credits="" -authors = "${mod_authors}" -displayTest="MATCH_VERSION" # MATCH_VERSION, IGNORE_SERVER_VERSION (server only), IGNORE_ALL_VERSION (client only), NONE (IExtensionPoint.DisplayTest) -description = '''${mod_description}''' - -[[dependencies."${mod_id}"]] -modId = "forge" -mandatory = true -versionRange = "${forge_version_range}" -ordering = "NONE" # BEFORE, AFTER, NONE -side = "BOTH" # BOTH, CLIENT, SERVER - -[[dependencies."${mod_id}"]] -modId = "minecraft" -mandatory = true -versionRange = "${minecraft_version_range}" -ordering = "NONE" -side = "BOTH" diff --git a/src/main/resources/META-INF/neoforge.mods.toml b/src/main/resources/META-INF/neoforge.mods.toml new file mode 100644 index 0000000..8f8f7ae --- /dev/null +++ b/src/main/resources/META-INF/neoforge.mods.toml @@ -0,0 +1,44 @@ +modLoader = "javafml" +loaderVersion = "${loader_version_range}" +license = "${mod_license}" +issueTrackerURL="https://gitea.micle.dev/minecraft-mods/firefly_bush_backport/issues" + +[[mods]] +modId = "${mod_id}" +version = "${mod_version}" +displayName = "${mod_name}" +#updateJSONURL="https://change.me.example.invalid/updates.json" # https://docs.minecraftforge.net/en/latest/misc/updatechecker/ +#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" +logoFile="logo.jpg" +#credits="" +authors = "${mod_authors}" +description = '''${mod_description}''' + +#[[mixins]] +#config = "${mod_id}.mixins.json" + +#[[accessTransformers]] +#file = "META-INF/accesstransformer.cfg" + +[[dependencies."${mod_id}"]] + modId = "neoforge + # The type of the dependency. Can be one of "required", "optional", "incompatible" or "discouraged" (case insensitive). + # 'required' requires the mod to exist, 'optional' does not + # 'incompatible' will prevent the game from loading when the mod exists, and 'discouraged' will show a warning" + type = "required" + versionRange = "${neo_version_range}" + ordering = "NONE" # BEFORE, AFTER, NONE + side = "BOTH" # BOTH, CLIENT, SERVER + +[[dependencies."${mod_id}"]] + modId = "minecraft" + type = "required" + versionRange = "${minecraft_version_range}" + ordering = "NONE" + side = "BOTH" + +# Features are specific properties of the game environment, that you may want to declare you require. This example declares +# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't +# stop your mod loading on the server for example. +#[features.${mod_id}] +#openGLVersion = "[3.2,)" \ No newline at end of file