-
Bug
-
Resolution: Invalid
-
None
-
24w37a
-
None
-
Community Consensus
-
Commands, Items
The bug
The totem of undying plays a sound upon activation. However, this sound carries over to any item given the new "death_protection" component. It cannot be substituted with any other sound event, nor removed altogether.
How to reproduce
/give @s rabbit_foot[death_protection={death_effects:[{type:'minecraft:play_sound',sound:'minecraft:entity.ghast.hurt'}]}]- Recieve fatal damage
Expected results
There would be no "Totem activates" sound, but rather the ghast damage sound.
Actual results
Both the ghast and totem sounds play at the same time.
How to fix
Make totems of undying use the play_sound effect by default, pointing it to the totem sound. This way, not specifying play_sound would result in any custom item being silent with this effect, and custom sounds can be applied without conflicting with the totem sound.