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

Component blocks_attacks accept disabled_sound instead of disable_sound

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 25w04a
    • None
    • Confirmed
    • Commands, Items

      From changelog 25w04a:

      • disable_sound - sound event (optional)
        • If specified, this sound will be played when the item goes on its disabled cooldown due to an attack

      But blocks_attackes component does not accept disable_sound field. Instead, it accepts disabled_sound.

      How to Reproduce

      1. Obtain these shield:
        /give @s minecraft:shield[minecraft:blocks_attacks={"disable_sound":"minecraft:ambient.cave"},minecraft:item_name="1"]
        /give @s minecraft:shield[minecraft:blocks_attacks={"disabled_sound":"minecraft:ambient.cave"},minecraft:item_name="2"]
        
      2. Summon a warden to attack you.
        /summon minecraft:warden ~ ~ ~
        
      3. When the shield is disabled check if the subtitles "Eerie noise" is displayed.

      Expected Result:

      For shield 1, subtitles "Eerie noise" can be displayed.
      For shield 2, no subtitles "Eerie noise".

      Observed Result:

      For shield 1, no subtitles "Eerie noise".
      For shield 2, subtitles "Eerie noise" can be displayed.

            Unassigned Unassigned
            wplxfore wplxfore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: