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

The /enchant command can execute successfully at level zero, and will do nothing to the item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w07a, Minecraft 1.13-pre6, Minecraft 18w30b, Minecraft 18w32a, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.14.4, 20w17a, 1.16.1, 20w30a, 1.16.3, 1.16.4, 20w46a, 20w49a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w11a, 21w15a, 21w17a, 21w20a, 1.17, 1.17.1, 1.18 Pre-release 4, 1.18.1, 1.18.2, 22w11a, 22w14a, 1.19, 22w24a, 1.19.2, 1.19.3, 1.20.4, 1.20.6, 1.21 Pre-Release 4, 1.21, 1.21.1
    • Confirmed
    • Commands

      The /enchant command can be used to enchant items with a level of 0, when it should only succeed at a level of 1 or more.

      Steps to Reproduce:

      1. Hold an un-enchanted tool in your main-hand
      2. Run the following command:
        /enchant @p minecraft:unbreaking 0
        

      Expected Result:

      The command would fail — showing a command in chat, and do nothing to the item.

      Observed Result:

      The command acts as though it succeeded, sending a message in chat. Nothing will happen to the item, and it will remain un-enchanted.

        1. _BugTracker_ (1.21.1).png
          472 kB
          BugTracker
        2. MC-125364.mp4
          4.82 MB
          [Mod] Avoma
        3. MC-125364.png
          659 kB
          [Mod] Avoma

            Unassigned Unassigned
            redstonehelper [Mod] redstonehelper
            Votes:
            15 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: