OGTOOLS

Minecraft /enchant command

Adds an enchantment to the held item, following enchanting table rules.

🎒 Item commands Operator (level 2) Needs cheats enabled Java Edition 26.3

Syntax

/enchant <targets> <enchantment> [<level>]

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Arguments

ArgumentWhat it does
<enchantment> Enchantment ID: sharpness, efficiency, unbreaking, fortune and so on.
[<level>] The enchantment level. Leave it out and 1 is used.

Examples

/enchant @s efficiency 5

Adds Efficiency 5 to the pickaxe in your hand.

/enchant @s unbreaking 3

Adds Unbreaking 3 to the item in your hand.

Good to know

  • It follows the game's limits: It rejects incompatible enchantments or levels above the maximum.
  • If you want enchantments without limits, use give with the enchantments component.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).

Related commands

🎒 More Item commands

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.