From 1d1ec579091b16156971af2cc324d75ce9d7101c Mon Sep 17 00:00:00 2001 From: cpw Date: Sat, 5 Jan 2019 00:14:07 -0500 Subject: [PATCH] Update mdk with some tweaks for building --- mdk/build.gradle | 7 ++++--- mdk/src/main/resources/META-INF/mods.toml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/mdk/build.gradle b/mdk/build.gradle index ce344c185..a6e9b952e 100644 --- a/mdk/build.gradle +++ b/mdk/build.gradle @@ -63,8 +63,9 @@ minecraft { dependencies { // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed - // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. - minecraft '@FORGE_GROUP@:@FORGE_NAME@:@FORGE_VERSION@' + // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. + // The userdev artifact is a special name and will get all sorts of transformations applied to it. + minecraft '@FORGE_GROUP@:userdev:@FORGE_VERSION@' // you may put jars on which you depend on in ./libs // or you may define them like so.. @@ -102,7 +103,7 @@ processResources { expand 'version':project.version, 'mcversion': '@MC_VERSION@' } - // copy everything else except the mcmod.info + // copy everything else except the mods.toml from(sourceSets.main.resources.srcDirs) { exclude 'META_INF/mods.toml' } diff --git a/mdk/src/main/resources/META-INF/mods.toml b/mdk/src/main/resources/META-INF/mods.toml index f012d48cf..90970be1e 100644 --- a/mdk/src/main/resources/META-INF/mods.toml +++ b/mdk/src/main/resources/META-INF/mods.toml @@ -5,8 +5,8 @@ # Find more information on toml format here: https://github.com/toml-lang/toml # The name of the mod loader type to load - for regular FML @Mod mods it should be javafml modLoader="javafml" #mandatory -# A version range to match for said mod loader - for regular FML @Mod it will be the minecraft version (without the 1.) -loaderVersion="[13,)" #mandatory +# A version range to match for said mod loader - for regular FML @Mod it will be the forge version +loaderVersion="[24,)" #mandatory (24 is current forge version) # A URL to query for updates for this mod. See the JSON update specification updateJSONURL="http://myurl.me/" #optional # A URL to refer people to when problems occur with this mod @@ -43,7 +43,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn # Does this dependency have to exist - if not, ordering below must be specified mandatory=true #mandatory # The version range of the dependency - versionRange="[14.23.2.0,)" #mandatory + versionRange="[24,)" #mandatory # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory ordering="NONE" # Side this dependency is applied on - BOTH, CLIENT or SERVER