From 62ce1dff3f597cc7b5c27c7b43ef7789f6f6adba Mon Sep 17 00:00:00 2001 From: DavidDGTNT Date: Mon, 30 Dec 2024 11:49:24 -0600 Subject: [PATCH] Update to 1.21 --- gradle.properties | 8 ++++---- src/main/java/me/daviddgtnt/stringtools/Main.java | 12 ++++++------ .../stringtools/{recipes => recipe}/string_axe.json | 0 .../{recipes => recipe}/string_axe_reverse.json | 0 .../stringtools/{recipes => recipe}/string_hoe.json | 0 .../{recipes => recipe}/string_hoe_reversed.json | 0 .../{recipes => recipe}/string_pickaxe.json | 0 .../{recipes => recipe}/string_shovel.json | 0 .../{recipes => recipe}/string_stick.json | 0 .../{recipes => recipe}/string_sword.json | 0 src/main/resources/fabric.mod.json | 4 ++-- 11 files changed, 12 insertions(+), 12 deletions(-) rename src/main/resources/data/stringtools/{recipes => recipe}/string_axe.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_axe_reverse.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_hoe.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_hoe_reversed.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_pickaxe.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_shovel.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_stick.json (100%) rename src/main/resources/data/stringtools/{recipes => recipe}/string_sword.json (100%) diff --git a/gradle.properties b/gradle.properties index 94f8465..6cc1d18 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,14 +4,14 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop - minecraft_version=1.20.5 - yarn_mappings=1.20.5+build.1 + minecraft_version=1.21 + yarn_mappings=1.21+build.9 loader_version=0.16.9 # Mod Properties - mod_version = 1.0.2-1.20.5 + mod_version = 1.0.2-1.21 maven_group = me.daviddgtnt archives_base_name = stringtools # Dependencies - fabric_version=0.97.8+1.20.5 + fabric_version=0.102.0+1.21 diff --git a/src/main/java/me/daviddgtnt/stringtools/Main.java b/src/main/java/me/daviddgtnt/stringtools/Main.java index ba131b3..3991f7c 100644 --- a/src/main/java/me/daviddgtnt/stringtools/Main.java +++ b/src/main/java/me/daviddgtnt/stringtools/Main.java @@ -17,12 +17,12 @@ public class Main implements ModInitializer { @Override public void onInitialize() { - Registry.register(Registries.ITEM, new Identifier("stringtools", "string_stick"), STRING_STICK); - Registry.register(Registries.ITEM, new Identifier("stringtools", "string_sword"), STRING_SWORD); - Registry.register(Registries.ITEM, new Identifier("stringtools", "string_pickaxe"), STRING_PICKAXE); - Registry.register(Registries.ITEM, new Identifier("stringtools", "string_axe"), STRING_AXE); - Registry.register(Registries.ITEM, new Identifier("stringtools", "string_shovel"), STRING_SHOVEL); - Registry.register(Registries.ITEM, new Identifier("stringtools", "string_hoe"), STRING_HOE); + Registry.register(Registries.ITEM, Identifier.of("stringtools", "string_stick"), STRING_STICK); + Registry.register(Registries.ITEM, Identifier.of("stringtools", "string_sword"), STRING_SWORD); + Registry.register(Registries.ITEM, Identifier.of("stringtools", "string_pickaxe"), STRING_PICKAXE); + Registry.register(Registries.ITEM, Identifier.of("stringtools", "string_axe"), STRING_AXE); + Registry.register(Registries.ITEM, Identifier.of("stringtools", "string_shovel"), STRING_SHOVEL); + Registry.register(Registries.ITEM, Identifier.of("stringtools", "string_hoe"), STRING_HOE); ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register(content -> content.addBefore(Items.STICK, STRING_STICK)); diff --git a/src/main/resources/data/stringtools/recipes/string_axe.json b/src/main/resources/data/stringtools/recipe/string_axe.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_axe.json rename to src/main/resources/data/stringtools/recipe/string_axe.json diff --git a/src/main/resources/data/stringtools/recipes/string_axe_reverse.json b/src/main/resources/data/stringtools/recipe/string_axe_reverse.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_axe_reverse.json rename to src/main/resources/data/stringtools/recipe/string_axe_reverse.json diff --git a/src/main/resources/data/stringtools/recipes/string_hoe.json b/src/main/resources/data/stringtools/recipe/string_hoe.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_hoe.json rename to src/main/resources/data/stringtools/recipe/string_hoe.json diff --git a/src/main/resources/data/stringtools/recipes/string_hoe_reversed.json b/src/main/resources/data/stringtools/recipe/string_hoe_reversed.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_hoe_reversed.json rename to src/main/resources/data/stringtools/recipe/string_hoe_reversed.json diff --git a/src/main/resources/data/stringtools/recipes/string_pickaxe.json b/src/main/resources/data/stringtools/recipe/string_pickaxe.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_pickaxe.json rename to src/main/resources/data/stringtools/recipe/string_pickaxe.json diff --git a/src/main/resources/data/stringtools/recipes/string_shovel.json b/src/main/resources/data/stringtools/recipe/string_shovel.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_shovel.json rename to src/main/resources/data/stringtools/recipe/string_shovel.json diff --git a/src/main/resources/data/stringtools/recipes/string_stick.json b/src/main/resources/data/stringtools/recipe/string_stick.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_stick.json rename to src/main/resources/data/stringtools/recipe/string_stick.json diff --git a/src/main/resources/data/stringtools/recipes/string_sword.json b/src/main/resources/data/stringtools/recipe/string_sword.json similarity index 100% rename from src/main/resources/data/stringtools/recipes/string_sword.json rename to src/main/resources/data/stringtools/recipe/string_sword.json diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 98b2ae6..89a6170 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "id": "stringtools", - "version": "1.0.2-1.20.5", + "version": "1.0.2-1.21", "name": "String Tools", "description": "Single use tools made out of string!", @@ -26,7 +26,7 @@ "depends": { "fabricloader": ">=0.16.9", "fabric-api": "*", - "minecraft": "~1.20.5", + "minecraft": "~1.21", "java": ">=21" } }