-
Bug
-
Resolution: Fixed
-
24w11a
-
Confirmed
-
Commands, Datafixer
-
Important
-
Platform
The bug
Items with an empty NBT tag for enchantments (Enchantments:[]) do not upgrade to the new component system as expected. It'd be expected that they would get an enchantment_glint_override component tag, but this does not happen.
Notably, items with the NBT tag (Enchantments:[{}]) do convert as expected, so it'd be expected that the other form would also do so.
How to reproduce
A world containing "phantom enchanted" items is attached to this ticket.
- Open the attached world in 1.10.2 (in 1.11 to 1.20.4, the items won't visually appear enchanted due to a bug, but the NBT tag is still there)
- Verify that the items look enchanted
- Open the attached world in the latest 1.20.5 snapshot
- Verify that not only do they not look enchanted, but that the empty enchantment tag is completely gone, and these items are now identical to normal unenchanted items
Expected results
These items would keep their enchantment glint in 1.20.5+ by converting to the new enchantment_glint_override component.
Actual results
They do not.
- relates to
-
MC-271020 enchantment_glint_override=true does not cause pick block to avoid replacing that item
- Resolved