News
Game
Guides
Downloads
Versions
/enchant
COMMANDS ITEMS & INVENTORY CHEATS · LEVEL 2 Added in 1.14 or earlier

/enchant command in Minecraft

/enchant adds an enchantment to the item that a player or a mob holds in its main hand. It follows survival rules: the item must accept the enchantment, the level cannot go past the normal maximum, and enchantments that conflict with the existing ones are refused.

Syntax

/enchant <targets> <enchantment> [<level>]
ArgumentExpectsWhat it does
targetsEntity selectorone or severalEntities whose main hand item is enchanted: @s, @p, @a, or a mob such as @e[type=minecraft:zombie,limit=1].
enchantmentID · enchantmentEnchantment ID, for example minecraft:sharpness or minecraft:mending. The list on this page gives every ID.
leveloptionalWhole numberat least 0Enchantment level, 1 by default. It cannot exceed the normal maximum of the enchantment.
All 2 forms
  • /enchant <targets> <enchantment>
  • /enchant <targets> <enchantment> <level>

Examples

Sharpness V on your weapon

/enchant @s minecraft:sharpness 5

Adds Sharpness V to the sword or axe in your main hand.

Java 26.3

Add Mending to a tool

/enchant @s minecraft:mending

Without a level, the enchantment is applied at level I, the only level of Mending.

Java 26.3

Unbreaking for every player

/enchant @a minecraft:unbreaking 3

Each player gets Unbreaking III on the held item, if it accepts it.

Java 26.3

A zombie with a fiery sword

/enchant @e[type=minecraft:zombie,limit=1,sort=nearest] minecraft:fire_aspect 2

If the nearest zombie holds a sword, it gets Fire Aspect II.

Java 26.3
Interactive tool

Command generator

Fill in the fields, copy the command, paste it in the chat. Syntax checked against Java Edition 26.3.

Turn on JavaScript to use the interactive version.

/enchant @p sharpness 5

Calculated from the Java Edition 26.3 game files

IDs for /enchant

Aqua Affinityaqua_affinityBane of Arthropodsbane_of_arthropodsBlast Protectionblast_protectionBreachbreachChannelingchannelingCurse of Bindingbinding_curseCurse of Vanishingvanishing_curseDensitydensityDepth Striderdepth_striderEfficiencyefficiencyFeather Fallingfeather_fallingFire Aspectfire_aspectFire Protectionfire_protectionFlameflameFortunefortuneFrost Walkerfrost_walkerImpalingimpalingInfinityinfinityKnockbackknockbackLootinglootingLoyaltyloyaltyLuck of the Sealuck_of_the_seaLungelungeLurelureMendingmendingMultishotmultishotPiercingpiercingPowerpowerProjectile Protectionprojectile_protectionProtectionprotectionPunchpunchQuick Chargequick_chargeRespirationrespirationRiptideriptideSharpnesssharpnessSilk Touchsilk_touchSmitesmiteSoul Speedsoul_speedSweeping Edgesweeping_edgeSwift Sneakswift_sneakThornsthornsUnbreakingunbreakingWind Burstwind_burst

Enchantments →

Limits of /enchant

The command only reads the main hand. Three messages explain most failures:

  • 6 is higher than the maximum level of 5 supported by that enchantment: the level is above the enchantment's maximum.
  • Diamond Pickaxe cannot support that enchantment: the item does not accept it, or it conflicts with an enchantment already there, such as Sharpness with Smite, or Silk Touch with Fortune.
  • Steve is not holding any item: the main hand is empty.

Going past the maximum level

For Sharpness 10 or for conflicting enchantments on one item, use /give with the enchantments component: /give @s minecraft:diamond_sword[enchantments={sharpness:10}]. An Enchanted Book uses the stored_enchantments component instead. To change an item in another slot, apply an item modifier with /item.

Choosing enchantments

Mobs holding a weapon can be enchanted too, which makes custom bosses easy. To pick the right enchantments for a weapon, see the best sword enchantments.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/enchant: FAQ

Why does /enchant say the item cannot support that enchantment?

Either the item type cannot take it, for example Sharpness on a pickaxe, or it conflicts with an enchantment already on the item. Use /give with the enchantments component to bypass both rules.

Can I enchant an item that is not in my hand?

Not with /enchant, which only reads the main hand. For another slot, use /item modify with an item modifier such as set_enchantments.

How do I use /enchant?

Type it in the chat with cheats on: /enchant <targets> <enchantment> [<level>].

Who can use /enchant?

Cheats on, or operator level 2.

Related commands