Using the /enchant command in Minecraft chat.

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

PartWhat it means
TargetWho: @s (you), @p, @a, a player name
EnchantmentName (Java) or ID (Bedrock), e.g., sharpness
LevelOptional defaults to 1, cannot exceed the max
Applies toThe 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 @s for yourself, @p for the nearest player, @a for everyone, or just type a player’s name.
  • Enchantment is the enchantment to apply. Java uses names like sharpness or minecraft: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 6 fails 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

How do you use the enchant command in Minecraft?

Hold the item, then run /enchant [level], for example /enchant @s sharpness 5. You need cheats or operator permissions enabled.

What is the syntax of the enchant command?

Java: /enchant [level]. Bedrock: /enchant [level]. The level is optional and defaults to 1.

Why does the enchant command say I’m not holding an item?

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.

Can the enchant command exceed max levels?

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.

Do you need cheats for the enchant command?

Yes. You must have cheats enabled in your world or operator permissions on a server to use /enchant.

Does the enchant command work on Bedrock?

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.

Leave a Comment

0 Comments
Oldest
Newest Most Voted