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

Trying to enchant an item with no enchantments component using /enchant succeeds but has no effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 24w37a, 24w39a, 1.21.3, 1.21.4
    • None
    • Confirmed
    • Enchantments
    • Low
    • Platform

      Removing the enchantments component from an item also removes its ability to be enchanted by using the /enchant command. Trying to do so, however, results in the command succeeding despite the fact that no enchantment was added to the item.

      How to reproduce:

      1. Execute the following command:
        /give @s minecraft:diamond_sword[!minecraft:enchantments]
      2. While holding the sword you were given, execute the following command:
        /enchant @s minecraft:sharpness

        The command succeeds according to the message printed in the chat, but no enchantment was applied.

      Expected result:

      Either the command would fail, or the enchantments component would be added back onto the item and the specified enchantment applied.

      Observed result:

      The command succeeded but no enchantment was added.

        1. Confirmed.png
          470 kB
          BugTracker
        2. MC-276601.mp4
          3.57 MB
          [Mod] Avoma

            Unassigned Unassigned
            ManosSef [Mod] ManosSef
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: