/enchant @p minecraft:sharpnessThe /enchant command enchants the item held by the target player. It respects vanilla enchantment limits. For unrestricted enchantments, use the /give command with NBT data instead.
The /enchant command adds enchantments to the item a player is holding. Pick the enchantment, set the level up to its vanilla max, and target any player. This generator builds the correct syntax and shows max levels so the command does not fail on an incompatible item.
The syntax is /enchant [targets] [enchantment] [level]. The level is optional and defaults to 1. The command applies the enchantment to whatever the target is holding in their main hand at the time it runs.
The command follows vanilla rules: it will not exceed the max level, combine mutually exclusive enchantments, or enchant an unsupported item. For map makers who need to bypass these limits, the give command generator supports unrestricted enchantment data.
| Command | Effect |
|---|---|
| /enchant @s sharpness 5 | Adds Sharpness V to the sword you are holding |
| /enchant @s minecraft:protection 4 | Adds Protection IV to the held armor piece |
| /enchant @p unbreaking 3 | Gives the nearest player's held item Unbreaking III |
| /enchant @s mending | Adds Mending (level 1, the max) to the held item |
| /enchant @s breach 4 | Adds Breach IV to a held mace |
Exclusive sets: Sharpness, Smite, Bane of Arthropods, Impaling, Breach and Density all conflict as the damage set. Protection, Fire Protection, Blast Protection and Projectile Protection conflict as the armor set. Depth Strider and Frost Walker conflict on boots, Infinity and Mending conflict on bows, and Multishot and Piercing conflict on crossbows.
| Enchantment | Max Level | Slot(s) |
|---|---|---|
| Sharpness | 5 | Mainhand |
| Smite | 5 | Mainhand |
| Protection | 4 | Armor |
| Efficiency | 5 | Mainhand |
| Unbreaking | 3 | Any |
| Mending | 1 | Any |
| Power | 5 | Mainhand (Bow) |
| Breach | 4 | Mainhand (Mace) |
| Density | 5 | Mainhand (Mace) |
| Wind Burst | 3 | Mainhand (Mace) |
| Lunge | 3 | Hand (Spear) |
The mace has three dedicated enchantments. Breach reduces armor effectiveness by 15% per level, Density adds 0.5 extra smash damage per fallen block per level, and Wind Burst creates an upward wind explosion on a smash hit.
Use /enchant <target> <enchantment> [level]. For example, /enchant @s minecraft:sharpness 5 adds Sharpness V to the item you are holding. The command follows vanilla enchantment rules. For unrestricted enchanting, use /give with enchantment components instead.
Exclusive sets are groups of enchantments that cannot coexist on the same item. The damage set (Sharpness, Smite, Bane of Arthropods, Impaling, Breach, Density), armor set (Protection variants), boots set (Depth Strider, Frost Walker), bow set (Infinity, Mending), and crossbow set (Multishot, Piercing) are the main conflicts to know.
/enchant follows vanilla rules: max level caps, item compatibility, and exclusive set conflicts. /give with enchantment NBT bypasses all restrictions, letting you create Sharpness 255 swords or combine every protection type on one piece of armor. Use /enchant for legitimate gameplay, /give for custom maps.
The /enchant command fails if the held item does not support the enchantment, if the level exceeds the enchantment's max, or if the item already has a mutually exclusive enchantment. Hold a compatible item and keep the level within range, or switch to /give for unrestricted enchanting.
Browse more Minecraft tools: