Skip to main content
← All Guides
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.

server console, survival.world
[12:04:51] [Server thread/INFO]: Holding: diamond_sword
[12:04:52] [Server thread/INFO]: Operator typed a command...
>/enchant @p sharpness 5
[12:04:55] [Server thread/INFO]: Applied enchantment Sharpness V to Steve
[12:04:55] [Server thread/INFO]: <Steve> my sword glows now
Diamond Sword, Sharpness V (no XP, no anvil)
The command, line by line
  1. 1
    Hold the item
    Put the tool, weapon, or armor you want to enchant in your main hand. /enchant only targets the held item.
  2. 2
    Open chat or console
    Press T in-game (you need OP or cheats on), or type straight into the server console with no slash.
  3. 3
    Type the command
    Run /enchant @p sharpness 5, target, enchantment ID, then level. @p hits the nearest player; use @s for yourself.
  4. 4
    Check the level cap
    The level must be valid for that enchant. Vanilla rejects anything above the max unless you raise it from console with a player target.
  5. 5
    Confirm the result
    The 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.
Database
Command Reference
Syntax, arguments and examples for every command.
Database
Enchantments
Max levels, conflicts and the best enchant combos.
Hosting
Managed Hosting
Skip the setup: a managed server online in minutes.
Database
Item Database
Every item with its stats, IDs, recipes and uses.
Guides
More Server & Admin guides
Run a server: setup, hosting, permissions, worlds and crossplay.