Mojira Archive
MC-276633

"Totem activates" sound is forced for any item with death_protection component and cannot be disabled or replaced

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

  1. /give @s rabbit_foot[death_protection={death_effects:[{type:'minecraft:play_sound',sound:'minecraft:entity.ghast.hurt'}]}]
  2. 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.

Invalid

Connor Steppie

2024-09-12, 11:05 AM

2024-09-13, 07:12 AM

2024-09-13, 07:12 AM

1

1

Community Consensus

Commands, Items

24w37a

-