mojira.dev
MC-272206

~ matcher for components will match too much

/clear @s *[enchantments~[{enchantment:"minecraft:vanishing_curse"}]]

removes all items enchanted with curse of vanishing in 1.20.6. It instead matches with every enchanted item in 24w20a

Steps to reproduce:

  1. Give yourself a sword with only sharpness 1

  2. Run the command

  3. See it disappear despite not having curse of vanishing

  4. Try again in 1.20.6 to see it working well

Comments 2

Not a bug. The format for enchantment sub-predicates changed in 24w18a; the enchantment field is now called enchantment{*}s{*}, plural.

tholleman

(Unassigned)

Unconfirmed

(Unassigned)

24w20a

Retrieved