Mojira Archive
MC-279716

Component blocks_attacks accept disabled_sound instead of disable_sound

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.

Works As Intended

wplxfore

[Mojang] Gegy

2025-01-23, 03:41 AM

2025-01-24, 09:15 AM

2025-01-24, 09:15 AM

1

2

Confirmed

Important

Platform

Commands, Items

25w04a

-