
The /enchant command adds an enchantment to whatever item you are holding, no enchanting table, anvil, or XP required. It is perfect for creative mode, testing gear, or setting up a map. This guide covers the exact syntax for Java and Bedrock, real examples, and the limits the command follows.
Everything here is confirmed in the current 2026 version of Minecraft (26.2).
Quick answer: hold the item, then run /enchant <target> <enchantment> [level], for example /enchant @s sharpness 5 to put Sharpness V on the item in your hand. You need cheats enabled or operator permissions.
/enchant at a Glance
| Part | What it means |
|---|---|
| Target | Who: @s (you), @p, @a, a player name |
| Enchantment | Name (Java) or ID (Bedrock), e.g., sharpness |
| Level | Optional defaults to 1, cannot exceed the max |
| Applies to | The item held in the main hand |
The Syntax
The command is almost identical across editions:
- Java:
/enchant <targets> <enchantment> [level] - Bedrock:
/enchant <player> <enchantmentName> [level]
Break it down:
- Target is who you are enchanting. Use
@sfor yourself,@pfor the nearest player,@afor everyone, or just type a player’s name. - Enchantment is the enchantment to apply. Java uses names like
sharpnessorminecraft:sharpness; Bedrock uses the enchantment name or its ID. - Level is optional. If you leave it off, it defaults to 1, and it cannot go above that enchantment’s normal maximum.
The command enchants the item the target is holding in their main hand, so you must have the item out first, or you will get a “not holding any item” error.
Examples
/enchant @s sharpness 5, Sharpness V on your held sword./enchant @p unbreaking 3, Unbreaking III on the nearest player’s item./enchant @s efficiency 5, Efficiency V on a pickaxe./enchant @s fortune 3, Fortune III on a pickaxe.
You can stack several by running the command a few times, for example giving a pickaxe Efficiency V, Unbreaking III, Fortune III, and Mending one after another.
The Limits (Same as an Anvil)
The /enchant command follows the same rules as survival enchanting:
- Only compatible enchantments. Trying an enchantment the item cannot hold (like Aqua Affinity on a sword) fails with a “cannot support that enchantment” message.
- No exceeding the max level.
/enchant @s sharpness 6fails because Sharpness caps at 5. - No conflicting combos. You cannot mix incompatible enchantments (like Sharpness and Smite) with this command.
If you want over-max or impossible enchantments (like Sharpness 1000), the /enchant command will not do it; you need the /give command with item components instead. For normal, legal enchantments, /enchant is the fastest tool. See our Minecraft commands list for more.
Frequently Asked Questions
Hold the item, then run /enchant [level], for example /enchant @s sharpness 5. You need cheats or operator permissions enabled.
Java: /enchant [level]. Bedrock: /enchant [level]. The level is optional and defaults to 1.
The command enchants the item in your main hand, so you must be holding an enchantable item when you run it. Equip the item first, then run the command.
No. It follows the same limits as an anvil, so it cannot go past an enchantment’s normal maximum or apply conflicting enchantments. Use the /give command for over-max enchantments.
Yes. You must have cheats enabled in your world or operator permissions on a server to use /enchant.
Yes. The syntax is /enchant [level]. On Bedrock you often /give an item first, then /enchant it.
The /enchant command is the quickest way to add legal enchantments without an anvil or table: hold the item, type /enchant @s , and you are done. Just remember it respects survival limits, so for anything beyond the normal maximum, you will want the /give command instead.


