diff --git a/gradle/scripts/resources.gradle b/gradle/scripts/resources.gradle index ee3e2a56a..d75cae43c 100644 --- a/gradle/scripts/resources.gradle +++ b/gradle/scripts/resources.gradle @@ -35,18 +35,18 @@ tasks.matching { it.name.startsWith('prepare') }.configureEach { } var generateModMetadata = tasks.register("generateModMetadata", ProcessResources) { - var neoVersion = libs.versions.neoForge.get() - neoVersion = neoVersion.substring(0, neoVersion.lastIndexOf('.')) var replaceProperties = [ version : version_toml, mod_id : mod_id, - minecraft_version : "[1.21, 1.21.1]", + minecraft_version : libs.versions.minecraft.get(), loader_version : libs.versions.loader.get(), - neo_version : neoVersion, + neo_version : "21.1.216", // Minimum required by LDLib2. ae2_version : forge.versions.ae2.get(), guideme_version : forge.versions.guideme.get(), configuration_version : forge.versions.configuration.get().replace('-neoforge', ''), conditional_mixin_version: libs.versions.conditional.mixin.get(), + ctm_version : forge.versions.ctm.get(), + mdlib_version : forge.versions.mdlib.get(), polymixin_version : libs.versions.polymixin.get(), ldlib_version : forge.versions.ldlib.get(), jei_version : forge.versions.jei.get(), diff --git a/src/main/templates/META-INF/neoforge.mods.toml b/src/main/templates/META-INF/neoforge.mods.toml index ece1f222e..3c2511a35 100644 --- a/src/main/templates/META-INF/neoforge.mods.toml +++ b/src/main/templates/META-INF/neoforge.mods.toml @@ -28,10 +28,11 @@ license = "${mod_license}" [[dependencies.${ mod_id }]] modId = "minecraft" type = "required" - versionRange = "${minecraft_version}" + versionRange = "[${minecraft_version}]" ordering = "NONE" side = "BOTH" +# Jar-in-Jar mods. [[dependencies.${ mod_id }]] modId = "conditional_mixin" type = "required" @@ -39,6 +40,8 @@ license = "${mod_license}" versionRange = "[${conditional_mixin_version},)" ordering = "AFTER" side = "BOTH" + [dependencies.${mod_id}.mc-publish] + ignore = true [[dependencies.${ mod_id }]] modId = "polymixin" @@ -47,36 +50,69 @@ license = "${mod_license}" versionRange = "[${polymixin_version},)" ordering = "AFTER" side = "BOTH" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "polymixin" [[dependencies.${ mod_id }]] - modId = "guideme" + modId = "configuration" type = "required" - versionRange = "[${guideme_version},)" + embedded = true + versionRange = "[${configuration_version},4)" ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "guideme" + curseforge = "configuration" [[dependencies.${ mod_id }]] - modId = "ae2" + modId = "mdlib" type = "required" - versionRange = "[${ae2_version},)" + embedded = true + versionRange = "[${mdlib_version},)" + ordering = "NONE" + side = "BOTH" + [dependencies.${mod_id}.mc-publish] + ignore = true + +[[dependencies.${ mod_id }]] + modId = "ctm" + type = "optional" + embedded = true + versionRange = "[${ctm_version},)" + side = "CLIENT" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ctm" + +[mc-publish] + # v3.3.1 needs an explicit NeoForge override to publish an embedded library. + dependencies = [ + "polymixin@${polymixin_version}(embedded)", + "configuration@${configuration_version}(embedded)", + "ctm@${ctm_version}(embedded)", + ] + +# Required external mods. +[[dependencies.${ mod_id }]] + modId = "guideme" + type = "required" + versionRange = "[${guideme_version},)" ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "applied-energistics-2" + curseforge = "guideme" [[dependencies.${ mod_id }]] - modId = "configuration" + modId = "ae2" type = "required" - embedded = true - versionRange = "[${configuration_version},4)" + versionRange = "[${ae2_version},)" ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] - ignore = true + ignore = false + curseforge = "applied-energistics-2" [[dependencies.${ mod_id }]] modId = "ldlib2" @@ -88,6 +124,7 @@ license = "${mod_license}" ignore = false curseforge = "ldlib" +# Recipe viewers, overlays, and client integrations. [[dependencies.${ mod_id }]] modId = "emi" type = "optional" @@ -119,35 +156,29 @@ license = "${mod_license}" curseforge = "ae2-jei-integration" [[dependencies.${ mod_id }]] - modId = "ae2ct" + modId = "jade" type = "optional" - versionRange = "[1.21.1-1.1.1,)" - ordering = "AFTER" - side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "ae2-crafting-tree" + curseforge = "jade" [[dependencies.${ mod_id }]] - modId = "ae2wtlib" - type = "required" - versionRange = "[0,)" - ordering = "AFTER" - side = "BOTH" + modId = "jecharacters" + type = "optional" + side = "CLIENT" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "applied-energistics-2-wireless-terminals" + curseforge = "just-enough-characters" [[dependencies.${ mod_id }]] - modId = "curios" + modId = "sodium" type = "optional" - versionRange = "[9.5.1+1.21.1,)" - ordering = "AFTER" - side = "BOTH" + side = "CLIENT" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "curios" + curseforge = "sodium" +# Maps and FTB integrations. [[dependencies.${ mod_id }]] modId = "journeymap" type = "optional" @@ -176,7 +207,14 @@ license = "${mod_license}" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "314906" + curseforge = "ftb-chunks-forge" + +[[dependencies.${ mod_id }]] + modId = "ftblibrary" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ftb-library-forge" [[dependencies.${ mod_id }]] modId = "ftbteams" @@ -186,7 +224,7 @@ license = "${mod_license}" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "404468" + curseforge = "ftb-teams-forge" [[dependencies.${ mod_id }]] modId = "ftbquests" @@ -196,27 +234,97 @@ license = "${mod_license}" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "289412" + curseforge = "ftb-quests-forge" [[dependencies.${ mod_id }]] - modId = "extendedae" + modId = "ftbultimine" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ftb-ultimine-forge" + +# Applied Energistics add-ons. +[[dependencies.${ mod_id }]] + modId = "ae2wtlib" type = "optional" versionRange = "[0,)" ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "ex-pattern-provider" + curseforge = "applied-energistics-2-wireless-terminals" [[dependencies.${ mod_id }]] - modId = "megacells" + modId = "ae2ct" + type = "optional" + versionRange = "[1.21.1-1.1.1,)" + ordering = "AFTER" + side = "BOTH" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ae2-crafting-tree" + +[[dependencies.${ mod_id }]] + modId = "ae2lt" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ae2-lightning-tech" + +[[dependencies.${ mod_id }]] + modId = "advanced_ae" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "advancedae" + +[[dependencies.${ mod_id }]] + modId = "ae2addonlib" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ae2addonlib" + +[[dependencies.${ mod_id }]] + modId = "appliedcreate" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "applied-create" + +[[dependencies.${ mod_id }]] + modId = "appliede" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "appliede" + +[[dependencies.${ mod_id }]] + modId = "appflux" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "applied-flux" + +[[dependencies.${ mod_id }]] + modId = "appmek" + type = "optional" + versionRange = "[0,)" + ordering = "NONE" + side = "BOTH" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "applied-mekanistics" + +[[dependencies.${ mod_id }]] + modId = "extendedae" type = "optional" versionRange = "[0,)" ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "mega-cells" + curseforge = "ex-pattern-provider" [[dependencies.${ mod_id }]] modId = "extendedae_plus" @@ -229,24 +337,101 @@ license = "${mod_license}" curseforge = "extendedae-plus" [[dependencies.${ mod_id }]] - modId = "mekanism" + modId = "glodium" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "glodium" + +[[dependencies.${ mod_id }]] + modId = "megacells" type = "optional" versionRange = "[0,)" - ordering = "NONE" + ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "mekanism" + curseforge = "mega-cells" [[dependencies.${ mod_id }]] - modId = "appmek" + modId = "neoecoae" type = "optional" - versionRange = "[0,)" - ordering = "NONE" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "neo-eco-ae-extension" + +# Machine, energy, equipment, and recipe integrations. +[[dependencies.${ mod_id }]] + modId = "actuallyadditions" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "actually-additions" + +[[dependencies.${ mod_id }]] + modId = "alltheores" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ato" + +[[dependencies.${ mod_id }]] + modId = "ars_nouveau" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "ars-nouveau" + +[[dependencies.${ mod_id }]] + modId = "astralsorcery" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "astral-sorcery" + +[[dependencies.${ mod_id }]] + modId = "avaritia" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "re-avaritia" + +[[dependencies.${ mod_id }]] + modId = "botania" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = true # The 1.21.1 NeoForge build is distributed via Maven. + +[[dependencies.${ mod_id }]] + modId = "brandonscore" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "brandons-core" + +[[dependencies.${ mod_id }]] + modId = "create" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "create" + +[[dependencies.${ mod_id }]] + modId = "cucumber" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "cucumber" + +[[dependencies.${ mod_id }]] + modId = "curios" + type = "optional" + versionRange = "[9.5.1+1.21.1,)" + ordering = "AFTER" side = "BOTH" [dependencies.${mod_id}.mc-publish] ignore = false - curseforge = "applied-mekanistics" + curseforge = "curios" [[dependencies.${ mod_id }]] modId = "draconicevolution" @@ -257,3 +442,118 @@ license = "${mod_license}" [dependencies.${mod_id}.mc-publish] ignore = false curseforge = "draconic-evolution" + +[[dependencies.${ mod_id }]] + modId = "embers" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "embers-re-ignited" + +[[dependencies.${ mod_id }]] + modId = "extendedcrafting" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "extended-crafting" + +[[dependencies.${ mod_id }]] + modId = "flywheel" + type = "optional" + side = "CLIENT" + [dependencies.${mod_id}.mc-publish] + ignore = true # Bundled by Create on 1.21.1. + +[[dependencies.${ mod_id }]] + modId = "forbidden_arcanus" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "forbidden-arcanus" + +[[dependencies.${ mod_id }]] + modId = "goety" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "goety" + +[[dependencies.${ mod_id }]] + modId = "industrialforegoing" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "industrial-foregoing" + +[[dependencies.${ mod_id }]] + modId = "malum" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "malum" + +[[dependencies.${ mod_id }]] + modId = "mekanism" + type = "optional" + versionRange = "[0,)" + ordering = "NONE" + side = "BOTH" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "mekanism" + +[[dependencies.${ mod_id }]] + modId = "mekmm" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "mekanism-more-machine" + +[[dependencies.${ mod_id }]] + modId = "modern_industrialization" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "modern-industrialization" + +[[dependencies.${ mod_id }]] + modId = "mysticalagriculture" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "mystical-agriculture" + +[[dependencies.${ mod_id }]] + modId = "naturesaura" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "natures-aura" + +[[dependencies.${ mod_id }]] + modId = "neovitae" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "neovitae" + +[[dependencies.${ mod_id }]] + modId = "occultism" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "occultism" + +[[dependencies.${ mod_id }]] + modId = "oritech" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "oritech" + +[[dependencies.${ mod_id }]] + modId = "projecte" + type = "optional" + [dependencies.${mod_id}.mc-publish] + ignore = false + curseforge = "projecte"