Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-249998

Anvil removes empty enchant during renaming

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.18.2, 22w14a
    • Confirmed
    • (Unassigned)

      When using an anvil to rename an item that has an empty enchantment, the item will lose its empty enchantment.

      To reproduce:

      1. /give @s stone{Enchantments:[{}]}
      2. Observe that it has an enchantment glint, meaning the value is considered valid for the glint effect.
      3. Put it in an anvil and rename it.
      4. The output item has no enchantment glint and its enchantment tag is removed.

      Expected behavior:

      • The output item should retain the enchantment as no enchantment removing should have happened, and there was no combining of items in the anvil.

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: