From 552b533148505fce1f78f0cd3834e9903775287e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Zi=C4=99ciak?= Date: Sun, 10 Mar 2024 21:45:08 +0100 Subject: [PATCH] Update copper tool material parameters to more balanced one --- gradle.properties | 2 +- .../java/pl/xyundy/squaredadditions/item/ModToolMaterial.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 11aa35b..2102183 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10 loader_version=0.15.7 # Mod Properties -mod_version=0.2.0 +mod_version=0.3.0 maven_group=pl.xyundy.squaredadditions archives_base_name=squaredadditions diff --git a/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java b/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java index 1fef19b..e930f0c 100644 --- a/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java +++ b/src/main/java/pl/xyundy/squaredadditions/item/ModToolMaterial.java @@ -2,13 +2,14 @@ import net.minecraft.item.Items; import net.minecraft.item.ToolMaterial; +import net.minecraft.item.ToolMaterials; import net.minecraft.recipe.Ingredient; import net.minecraft.util.Lazy; import java.util.function.Supplier; public enum ModToolMaterial implements ToolMaterial { - COPPER_INGOT(2, 200, 6.0f, 2.0f, 14, () -> Ingredient.ofItems(Items.COPPER_INGOT)); + COPPER_INGOT(ToolMaterials.STONE.getMiningLevel(), ToolMaterials.WOOD.getDurability(), ToolMaterials.IRON.getMiningSpeedMultiplier(), ToolMaterials.STONE.getAttackDamage(), ToolMaterials.STONE.getEnchantability(), () -> Ingredient.ofItems(Items.COPPER_INGOT)); private final int miningLevel; private final int itemDurability;