The command
/item replace entity @a hotbar.0 with minecraft:mace[minecraft:enchantments={levels:{"minecraft:wind_burst":3}}]
or any command that has the same thing but different tools and enchantment, work in 1.21.4, but it doesn’t work at 1.21.5
The command
/item replace entity @a hotbar.0 with minecraft:mace[minecraft:enchantments={levels:{"minecraft:wind_burst":3}}]
or any command that has the same thing but different tools and enchantment, work in 1.21.4, but it doesn’t work at 1.21.5
From the 1.21.5 changelog:
enchantments
andstored_enchantments
Item ComponentsRemoved
show_in_tooltip
field, replaced bytooltip_display
componentThese components now always use their simplified form, with the levels field inlined to top-level
e.g.
enchantments={levels:{sharpness:2}}
->enchantments={sharpness:2}
The correct command would be: