Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276633

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

XMLWordPrintable

    • Icon: Bug 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

      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.

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: