The /enchant command can execute successfully at level zero, and will do nothing to the item
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:
- Hold an un-enchanted tool in your main-hand
- 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.
- Unresolved
[Mod] redstonehelper
- 15
- 6
- Confirmed
- Commands
- /enchant
18w07a - 1.21.4
18w07a 1.13-pre6 18w30b 18w32a 1.13.1-pre2 1.13.1 1.13.2 19w12b 19w13b 19w14a 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-pre4 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-pre4 1.21 1.21.1 1.21.4
Created Issue:
/enchant can enchant at level 0
It should only do level 1 and more. To reproduce, hold an unenchanted tool and run /enchant @a minecraft:unbreaking 0.
Affects 1.13.1-pre2.
Affects 18w32a.
This happens in 18w30b too. Kind of wierd that it prevents further enchanting, too: "/enchant @a minecraft:unbreaking 1" will throw an error message that the tool won't support that enchantment.
is duplicated by
is duplicated by
relates to
It should only do level 1 and more. To reproduce, hold an unenchanted tool and run
/enchant @a minecraft:unbreaking 0.
Requesting ownership of this issue as the original reporter has been inactive since 2020. The bug has also been partially fixed, so that would be useful information to add to the description. I will continuously update this bug with newer affected versions.
Not sure what the rules are of taking ownership of a moderator-owned report, but as I said, the reporter has been inactive since 2020, and there is new information to be added.
/enchant can enchant at level 0The /enchant command can execute successfully at level zero, and will do nothing to the item
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:
- Hold an un-enchanted tool in your main-hand
- Run the following command:
/enchant @p minecraft:unbreaking 0Expected 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.
relates to
That's because you probably don't have the rights to execute those commands. Make sure you're a server operator.
/enchant being available to non-ops is a bug: MC-125364
Thank you for your report!
We're already tracking this issue at MC-125364, so I will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
This is a duplicate of MC-125364.


The error message when enchanting with an invalid value even says, "Integer must not be less than 0" so if even that explanation is coded that way, could it be (for some useless reason) intended?
Can confirm in 21w03a.
Can confirm in 21w05a.
Can confirm in 21w06a.
Can confirm in 21w07a.
Video attached.
Can confirm in 21w11a.
Can confirm in 21w15a.
Can confirm in 21w17a.
Can confirm in 1.16.5 and 21w20a.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm this in 1.18 Pre-release 4. Here are some extra details regarding this problem.
The Bug:
Items can be enchanted at level 0 by using the "/enchant" command.
Steps to Reproduce:
Observed Behavior:
Items can be enchanted at level 0 by using the "/enchant" command.
Expected Behavior:
Items would not be able to be enchanted at level 0 by using the "/enchant" command.
Can confirm in 1.18.1.
Can confirm in 1.18.2 and 21w11a.
Can confirm in 22w14a.
Can confirm in 1.19 and 22w24a.
Can confirm in 1.19.2.
Can confirm in 1.20.4.
In 1.20.6 this still acts like it is successful, but the item no longer has the enchant glint or desc. So it is partially fixed.
Can confirm in 1.21 Pre-Release 4, however, the item does not get enchanted.
The command still gives a success message.
Can confirm in 1.21.