/enchant
Add an enchantment to the item a player is holding.
Overview
What is the /enchant command?
The /enchant command adds an enchantment to the item a player is currently holding โ no enchanting table or anvil required. You name the enchantment and an optional level, and it applies instantly if the item is compatible.
It's a quick way to gear up for testing, though it respects normal level caps unless you use /give with custom data for over-levelled enchantments.
When to use it: Use /enchant to add a specific enchantment to the held item without an enchanting table.
At a glance
Syntax
/enchant <target> <enchantment> [level]See it
What it does
Anatomy
Every part, explained
- 1
CommandRequired/enchantEnchants the held item.
- 2
TargetRequired<target>Whose held item gets enchanted.
- 3
EnchantmentRequired<enchantment>Which enchantment to apply.
- 4
LevelOptional[level]Optional - enchantment level. Defaults to 1.
Your turn
Try it yourself
Copy & paste
Examples
/enchant @s sharpness 5Max out a sword's Sharpness.
/enchant Steve unbreaking 3Make Steve's tool more durable.
/enchant @s protectionApply Protection at level 1.
Avoid these
Common mistakes
/enchant sharpness 5/enchant @s sharpness 5Name a target before the enchantment.
/enchant @s sharpness 99/enchant @s sharpness 5Level can't exceed the enchantment's max.
Good to know
Frequently asked questions
- How do you enchant an item with a command?
- Hold the item and run /enchant @s <enchantment> [level], e.g. /enchant @s sharpness 5.
- Why does /enchant say the enchantment can't be applied?
- /enchant follows survival rules: the item must support that enchantment and there can be no conflicting one. For anything goes, use /give with enchantment data.
- Can /enchant exceed the normal max level?
- No โ it caps at the enchantment's vanilla maximum. Higher levels need /give with custom item components.
Keep going