mojira.dev
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.

Comments 2

I can confirm this discrepancy.

The changelog is incorrect, but will be fixed for the full release - thanks for the report!

wplxfore

gegy

Confirmed

Platform

Important

Commands, Items

25w04a

Retrieved