diff --git a/build.gradle b/build.gradle index 3702d0a..3a85f49 100644 --- a/build.gradle +++ b/build.gradle @@ -19,11 +19,11 @@ repositories { dependencies { // Minecraft minecraft "com.mojang:minecraft:${project.minecraft_version}" - mappings "net.fabricmc:yarn:${project.yarn_version}:v2" + mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" // Meteor - modImplementation "com.github.MeteorDevelopment:meteor-client:master-SNAPSHOT" + modImplementation "com.github.MeteorDevelopment:meteor-client:v${project.meteor_version}" } processResources { @@ -31,6 +31,9 @@ processResources { filesMatching("fabric.mod.json") { expand "version": project.version + + filter { line -> line.replace("@mc_version@", project.minecraft_version) } + filter { line -> line.replace("@meteor_version@", project.meteor_version) } } } diff --git a/gradle.properties b/gradle.properties index 44d19d0..65e08d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,10 +2,13 @@ org.gradle.jvmargs=-Xmx2G # Fabric (https://fabricmc.net/versions.html) minecraft_version=1.17.1 -yarn_version=1.17.1+build.40 +yarn_mappings=1.17.1+build.1 loader_version=0.11.6 # Mod Properties mod_version=0.3 maven_group=meteordevelopment.addons archives_base_name=addon-template + +# Meteor +meteor_version=0.4.5 diff --git a/src/main/resources/assets/template/icon.png b/src/main/resources/assets/template/icon.png index faa6059..3fb2e7f 100644 Binary files a/src/main/resources/assets/template/icon.png and b/src/main/resources/assets/template/icon.png differ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 86a416e..7553908 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -22,7 +22,7 @@ ], "depends": { "java": ">=16", - "minecraft": ">=1.17.1", - "meteor-client": ">0.4.3" + "minecraft": ">=@mc_version@", + "meteor-client": ">=@meteor_version@" } } diff --git a/src/main/resources/template.mixins.json b/src/main/resources/template.mixins.json index 5a7a4cf..1c7c883 100644 --- a/src/main/resources/template.mixins.json +++ b/src/main/resources/template.mixins.json @@ -2,7 +2,9 @@ "required": true, "package": "meteordevelopment.addons.template.mixins", "compatibilityLevel": "JAVA_16", - "client": [], + "client": [ + + ], "injectors": { "defaultRequire": 1 }