Minecraft Enchant Command Generator
Easily generate the Minecraft /enchant command. Add any desired enchantment to the item a player is currently holding. This comprehensive guide respects all default Minecraft enchantment rules and compatibilities.
/enchant syntax
What this generator does
Pick the target, enchantment and level, and the generator builds the /enchant command. The enchantment list comes from each version's actual data, and choosing 1.12 or earlier switches to numeric IDs and the old selector syntax. Levels above the maximum cannot be selected.
Command Usage Examples
1. Silk Touch
Run it while holding a pickaxe, axe or shovel to mine blocks like glass or ice as they are. The level defaults to 1.
/enchant @p minecraft:silk_touch/enchant @p 33 12. Mending
Repairs durability whenever you gain experience. Its maximum level is 1, so no level is needed.
/enchant @p minecraft:mending/enchant @p 70 13. Unbreaking III
Lowers the chance of a tool losing durability. Works on almost all tools, weapons and armor.
/enchant @p minecraft:unbreaking 3/enchant @p 34 34. Fortune III
Increases drops from ores. It cannot be combined with Silk Touch.
/enchant @p minecraft:fortune 3/enchant @p 35 35. Knockback on every player's weapon
@a is every online player. Players holding nothing, or an item that cannot take Knockback, are skipped.
/enchant @a minecraft:knockback 2/enchant @a 19 2/enchant changes by version (Java Edition)
When an /enchant command from an old tutorial fails in a current version, it is usually because of these changes.
| Version | Change |
|---|---|
| 1.12 and earlier | Enchantments use numeric IDs, for example Silk Touch 33, Mending 70, Sharpness 16. |
| 1.13 | Numeric IDs were removed in favor of name IDs such as minecraft:silk_touch. |
| 1.21 | Enchantments became data-driven, so enchantments added by data packs can also be applied with /enchant. |
How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). The enchantment list and maximum levels are extracted from the official server jar's data generator reports, and FAQ error messages are quoted from the game's language file (en_us). Last checked: November 2026.
Useful values
Values people look up most often when choosing enchantments. All for Java Edition.
1. Maximum levels of common enchantments
· Sharpness, Efficiency, Power: 5 · Protection 4; Fortune, Looting, Unbreaking 3 · Silk Touch, Mending, Infinity: 1
2. Combinations that cannot coexist
· Sharpness / Smite / Bane of Arthropods · Silk Touch / Fortune · Mending / Infinity · Protection / Fire Protection / Blast Protection / Projectile Protection
3. Numeric IDs in 1.12 and earlier
· Protection 0, Sharpness 16, Knockback 19, Fire Aspect 20, Looting 21 · Efficiency 32, Silk Touch 33, Unbreaking 34, Fortune 35 · Power 48, Infinity 51, Mending 70
Frequently Asked Questions (FAQ)
Q. I get '... is not holding any item'.
A. The target has nothing in its main hand. /enchant only changes the main-hand item, not the off hand or inventory.
Q. I get '... cannot support that enchantment'.
A. The held item cannot take that enchantment, or it conflicts with one already on it. For example, Protection on a sword, Smite on a sword with Sharpness, or Fortune on a pickaxe with Silk Touch.
Q. I get '... is higher than the maximum level of ... supported by that enchantment'.
A. The level is above the enchantment's maximum. Sharpness tops out at 5, Unbreaking at 3, Mending at 1. Items beyond the maximum must be created with /give.
Q. I get 'Nothing changed. Targets either have no item in their hands or the enchantment could not be applied'.
A. You targeted several entities, such as @a, and none of them could be enchanted. They were all empty-handed or holding items that cannot take it.
Q. What is the difference between /enchant and /give?
A. /enchant adds an enchantment to the item already held, following survival rules; /give creates a new enchanted item. /give can exceed maximum levels and compatibility limits, so items like Sharpness 10 are possible.
Q. Can I use it on mobs, not just players?
A. Yes, if the mob is holding an item. For example, /enchant @e[type=zombie,limit=1,sort=nearest] minecraft:sharpness 5 enchants the sword a zombie is holding.