From a7d0c848914eb0fff5255bde8e6916f28b7b1016 Mon Sep 17 00:00:00 2001 From: nopo Date: Sun, 28 Aug 2022 16:06:41 +1000 Subject: [PATCH] Added 1.12.2 support --- build.gradle.kts | 6 +++--- src/main/java/com/example/ExampleMod.java | 2 +- src/main/resources/mcmod.info | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7286e59..e88f417 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -70,9 +70,9 @@ val shadowImpl: Configuration by configurations.creating { } dependencies { - minecraft("com.mojang:minecraft:1.8.9") - mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9") - forge("net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9") + minecraft("com.mojang:minecraft:1.12.2") + mappings("de.oceanlabs.mcp:mcp_stable:39-1.12") + forge("net.minecraftforge:forge:1.12.2-14.23.5.2847") // For some reason it cant find a version newer than 2847 // If you don't want mixins, remove these lines shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") { diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java index c18b591..f3c9aee 100644 --- a/src/main/java/com/example/ExampleMod.java +++ b/src/main/java/com/example/ExampleMod.java @@ -8,6 +8,6 @@ public class ExampleMod { @Mod.EventHandler public void init(FMLInitializationEvent event) { - System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName()); + System.out.println("Dirt: " + Blocks.DIRT.getTranslationKey()); } } diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index ab6d5dd..bf0a3df 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -4,15 +4,15 @@ "name": "Xample Mod", "description": "A mod that is used as an example.", "version": "${version}", - "mcversion": "${mcversion}", - "url": "https://github.com/romangraef/Forge1.8.9Template/", - "updateUrl": "", - "authorList": [ - "You" - ], - "credits": "", - "logoFile": "", - "screenshots": [], - "dependencies": [] + "mcversion": "1.12.2", + "url": "https://github.com/romangraef/Forge1.8.9Template/tree/1.12.2", + "updateUrl": "", + "authorList": [ + "You" + ], + "credits": "", + "logoFile": "", + "screenshots": [], + "dependencies": [] } -] \ No newline at end of file +]