From f752f0ef5132260c8002e07455e3f77d965a3bb6 Mon Sep 17 00:00:00 2001 From: Me <135455255+IcarussOne@users.noreply.github.com> Date: Thu, 15 Aug 2024 11:31:03 -0500 Subject: [PATCH] Add Cleansing Charm equip sounds --- .../common/items/baubles/ItemCleansingCharm.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/verdantartifice/thaumicwonders/common/items/baubles/ItemCleansingCharm.java b/src/main/java/com/verdantartifice/thaumicwonders/common/items/baubles/ItemCleansingCharm.java index 1752073..1121db0 100644 --- a/src/main/java/com/verdantartifice/thaumicwonders/common/items/baubles/ItemCleansingCharm.java +++ b/src/main/java/com/verdantartifice/thaumicwonders/common/items/baubles/ItemCleansingCharm.java @@ -11,6 +11,7 @@ import net.minecraft.client.util.ITooltipFlag; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.SoundEvents; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagInt; @@ -126,4 +127,14 @@ public void addInformation(ItemStack stack, World worldIn, List tooltip, public EnumRarity getRarity(ItemStack stack) { return EnumRarity.RARE; } + + @Override + public void onEquipped(ItemStack stack, EntityLivingBase player) { + player.playSound(SoundEvents.ENTITY_ENDEREYE_DEATH, 0.75F, 2.0F); + } + + @Override + public void onUnequipped(ItemStack stack, EntityLivingBase player) { + player.playSound(SoundEvents.ENTITY_ENDEREYE_DEATH, 0.75F, 2.0F); + } }