diff options
author | nopo <noahogno@gmail.com> | 2022-08-28 16:06:41 +1000 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-08-08 12:47:39 +0200 |
commit | 85bc2dcafb781e0b6e8b3cc91a7efafd630ae419 (patch) | |
tree | fe3b4245e2ca0b6b7a5804b84286c49628951808 | |
parent | c1dabe37d8b43d90a682edde797df9b278ec4a47 (diff) | |
download | forge1.8.9template-85bc2dcafb781e0b6e8b3cc91a7efafd630ae419.tar.gz forge1.8.9template-85bc2dcafb781e0b6e8b3cc91a7efafd630ae419.tar.bz2 forge1.8.9template-85bc2dcafb781e0b6e8b3cc91a7efafd630ae419.zip |
Added 1.12.2 support1.12
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | build.gradle.kts | 6 | ||||
-rw-r--r-- | src/main/java/com/example/ExampleMod.java | 5 | ||||
-rw-r--r-- | src/main/resources/mcmod.info | 22 |
4 files changed, 17 insertions, 18 deletions
@@ -1,4 +1,4 @@ -# Architectury Loom based template for 1.8.9 forge mods +# Architectury Loom based template for 1.12.2 forge mods **For other templates, do check out the [other branches of this repository](https://github.com/romangraef/Forge1.8.9Template/branches/all)** diff --git a/build.gradle.kts b/build.gradle.kts index 686fe0f..99f4024 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -74,9 +74,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 2ce1671..fc9dd0d 100644 --- a/src/main/java/com/example/ExampleMod.java +++ b/src/main/java/com/example/ExampleMod.java @@ -9,8 +9,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent; public class ExampleMod { @Mod.EventHandler public void init(FMLInitializationEvent event) { - System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName()); - // Below is a demonstration of an access-transformed class access. - System.out.println("Color State: " + new GlStateManager.Color()); + System.out.println("Dirt: " + Blocks.DIRT.getTranslationKey()); + System.out.println("Color State: " + new GlStateManager.Color()); } } 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 +] |