From eeeafe097fe59640bdf98642e8bc007c9c1c3dd5 Mon Sep 17 00:00:00 2001 From: Me <135455255+IcarussOne@users.noreply.github.com> Date: Mon, 10 Jun 2024 04:14:16 -0500 Subject: [PATCH] Add livingmetal shears --- .../events/HSItemTooltipEvent.java | 5 ++ .../mod/emt/harkenscythe/init/HSItems.java | 5 ++ .../harkenscythe/items/tools/HSShears.java | 50 ++++++++++++++++++ .../assets/harkenscythe/lang/en_us.lang | 2 + .../models/item/livingmetal_shears.json | 6 +++ .../recipes/livingmetal_shears.json | 15 ++++++ .../textures/entities/necronomicon_book.png | Bin 0 -> 773 bytes .../textures/items/livingmetal_shears.png | Bin 0 -> 259 bytes 8 files changed, 83 insertions(+) create mode 100644 src/main/java/mod/emt/harkenscythe/items/tools/HSShears.java create mode 100644 src/main/resources/assets/harkenscythe/models/item/livingmetal_shears.json create mode 100644 src/main/resources/assets/harkenscythe/recipes/livingmetal_shears.json create mode 100644 src/main/resources/assets/harkenscythe/textures/entities/necronomicon_book.png create mode 100644 src/main/resources/assets/harkenscythe/textures/items/livingmetal_shears.png diff --git a/src/main/java/mod/emt/harkenscythe/events/HSItemTooltipEvent.java b/src/main/java/mod/emt/harkenscythe/events/HSItemTooltipEvent.java index 56268b9..445777d 100644 --- a/src/main/java/mod/emt/harkenscythe/events/HSItemTooltipEvent.java +++ b/src/main/java/mod/emt/harkenscythe/events/HSItemTooltipEvent.java @@ -18,6 +18,7 @@ public class HSItemTooltipEvent private static final ResourceLocation SOUL_ALTAR = new ResourceLocation(HarkenScythe.MOD_ID, "soul_altar"); private static final ResourceLocation BLUNT_HARKEN_BLADE = new ResourceLocation(HarkenScythe.MOD_ID, "blunt_harken_blade"); private static final ResourceLocation HARKEN_ATHAME = new ResourceLocation(HarkenScythe.MOD_ID, "harken_athame"); + private static final ResourceLocation LIVINGMETAL_SHEARS = new ResourceLocation(HarkenScythe.MOD_ID, "livingmetal_shears"); private static final ResourceLocation SOUL_CAKE = new ResourceLocation(HarkenScythe.MOD_ID, "soul_cake"); private static final ResourceLocation SOUL_COOKIE = new ResourceLocation(HarkenScythe.MOD_ID, "soul_cookie"); @@ -38,6 +39,10 @@ else if (ForgeRegistries.ITEMS.getKey(item).equals(BLUNT_HARKEN_BLADE)) { event.getToolTip().add(1, I18n.format("tooltip.harkenscythe.blunt_blade")); } + else if (ForgeRegistries.ITEMS.getKey(item).equals(LIVINGMETAL_SHEARS)) + { + event.getToolTip().add(1, I18n.format("tooltip.harkenscythe.shears")); + } else if (ForgeRegistries.ITEMS.getKey(item).equals(SOUL_CAKE)) { event.getToolTip().add(1, I18n.format("tooltip.harkenscythe.soul_cake")); diff --git a/src/main/java/mod/emt/harkenscythe/init/HSItems.java b/src/main/java/mod/emt/harkenscythe/init/HSItems.java index 8a6df25..9565fd8 100644 --- a/src/main/java/mod/emt/harkenscythe/init/HSItems.java +++ b/src/main/java/mod/emt/harkenscythe/init/HSItems.java @@ -21,6 +21,7 @@ import mod.emt.harkenscythe.items.tools.HSHoe; import mod.emt.harkenscythe.items.tools.HSPickaxe; import mod.emt.harkenscythe.items.tools.HSScythe; +import mod.emt.harkenscythe.items.tools.HSShears; import mod.emt.harkenscythe.items.tools.HSShovel; import mod.emt.harkenscythe.items.tools.HSSword; import net.minecraft.client.renderer.block.model.ModelResourceLocation; @@ -30,6 +31,7 @@ import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; +import net.minecraft.item.crafting.Ingredient; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraftforge.client.event.ModelRegistryEvent; @@ -137,6 +139,8 @@ public class HSItems public static HSAxe livingmetal_axe; @GameRegistry.ObjectHolder("livingmetal_hoe") public static HSHoe livingmetal_hoe; + @GameRegistry.ObjectHolder("livingmetal_shears") + public static HSShears livingmetal_shears; @GameRegistry.ObjectHolder("livingmetal_helmet") public static HSArmor livingmetal_helmet; @GameRegistry.ObjectHolder("livingmetal_chestplate") @@ -215,6 +219,7 @@ public static void onRegisterItemsEvent(@Nonnull final RegistryEvent.RegisterNn{1`_XhZcxJG-}x|->DS{Z~ooBP=s1v^{Ddf9th>SqNxX9hXvhkKUC1w?z= ziD&5)7;z)fj;oCzf%gN z>`Q|Dg8x$l82Z#|#DPX}7I;J!GcfS&2Vq7F)?gK2AhvnBIEHw5znyTqtjR#Y^{^_J zBa2dmWAf5%QLO88b5|ewUmvDkGVQ7Ai&vYg4;r*gHdYr{l({Q0XzsRKY$ZSbMW2>d zn3Zb0{PC{X^ZYr-H}2qmzc*`Z`z$vO&c*+n%LO(sS<36a@M`H^jfE~f$D0-{6MSUv zcWL>{DI0(MZ2dg*^`?}6yFMJfA;x{h#OcgAqtoH9D|5D*uP!lT*lfByn(@vI1)j~Z zr+)s^z42uChWXF5?M(hebo|)H@?MTR-PrC=g>}ucNVAD~%E29m5et?He%ksxETjL8 zhUJ%Elb;$f@1Aj}rfjieLg70L+4jn1FI_H{XWTZ7W(ngFHSHBxd{@cJls9&9Tip$* zf7?V~h=eT!x-Uphf6CW?C5%(KJnE*&td4r$zkKqZ2X0H5CW${UW}MAcajp6W_w1#t zTA~h3Okaw!0NS%G}H0G|-oP%8shBkfQdW463D`PncTR(eLzMJD^~Mr;B5VMsVr5Xubmq94>(ZtIz#2kCAwB zdP&WS?=HfuxBoPEJUe&wd)nUzjghjG0`C45b!^-8mbD{~H7CVh;gs5$r~4)LxEZLQ of78IZM*DT=Wn0GiHyJD#uQ#%Xy0*@m2egC1)78&qol`;+0IfGz;Q#;t literal 0 HcmV?d00001