Skip to content

Commit

Permalink
Add Cleansing Charm equip sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Aug 15, 2024
1 parent 40ae5fd commit f752f0e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -126,4 +127,14 @@ public void addInformation(ItemStack stack, World worldIn, List<String> 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);
}
}

0 comments on commit f752f0e

Please sign in to comment.