Commands / Enchanting
How to Use the /enchant Command
The /enchant command writes an enchantment straight onto your held item, no XP, no anvil, no gambling at the table. Run /enchant @p sharpness 5 and the sword is maxed in one line.
The command, line by line
- 1Hold the itemPut the tool, weapon, or armor you want to enchant in your main hand. /enchant only targets the held item.
- 2Open chat or consolePress T in-game (you need OP or cheats on), or type straight into the server console with no slash.
- 3Type the commandRun /enchant @p sharpness 5, target, enchantment ID, then level. @p hits the nearest player; use @s for yourself.
- 4Check the level capThe level must be valid for that enchant. Vanilla rejects anything above the max unless you raise it from console with a player target.
- 5Confirm the resultThe console prints "Applied enchantment Sharpness V" and the item updates instantly, no experience cost, no anvil.
What you need
Held item to enchant
Enchantment ID
Anvil (the slow way)
Table alternative
Quick answers
?
What is the full syntax?
/enchant <target> <enchantment> [level]. Example: /enchant @p sharpness 5. Level defaults to 1 if you leave it off.
?
Does it cost XP or levels?
No. /enchant is a cheat-style command, it applies the enchantment for free, unlike an enchanting table or anvil.
?
Can I enchant another player's item?
Yes. Use their name or a selector like @a, but it only affects whatever item that player is currently holding.
?
Why does it say the enchantment can't be applied?
The item must support that enchant (you can't put Sharpness on a pickaxe) and the level must be within range. Use an anvil for higher-than-vanilla levels.
?
What's the difference between /enchant and an anvil?
An anvil combines books and items and costs XP and levels. /enchant skips all of that and writes the enchantment directly, but it follows vanilla level caps.
?
How do I get Sharpness above 5?
Vanilla /enchant won't go past the max. Use /give with NBT/components, an anvil with stacked books, or a plugin like EssentialsX for over-leveled enchants.