How to Enchant Command

Learn how to use the /enchant command in Minecraft Java and Bedrock to instantly add enchantments to held weapons, tools, and armor.

BothEasy2 minutes
How to Enchant Command

The /enchant command in Minecraft allows players to instantly apply enchantments to whatever item they are currently holding without needing an enchanting table, lapis lazuli, or experience levels. While standard methods require gathering resources as explained in our guide on How to Enchant Items, using commands offers an immediate shortcut when testing builds or playing in worlds with cheats enabled.

The /enchant command strictly enforces normal survival restrictions. You cannot apply conflicting enchants (like Fortune and Silk Touch together) or exceed vanilla maximum levels. If you want to bypass these caps, check out How to Enchant Past the Limit using the /give command.
In Bedrock Edition, enchantment identifiers do not require a namespace (e.g., unbreaking), whereas Java Edition accepts both unbreaking and minecraft:unbreaking.

Enable Cheats in Your World

To run any command in Minecraft, cheats must be active. If you are creating a new world, toggle Allow Cheats: ON in the world creation menu. In an existing Java Edition singleplayer world, press Esc, click Open to LAN, set Allow Cheats to ON, and click Start LAN World.

On Bedrock Edition, pause the game, enter Settings, scroll down in the Game tab, and toggle Activate Cheats to the on position. On multiplayer servers, your account must have operator (OP) status.

Equip the Target Item in Your Main Hand

Place the tool, weapon, or piece of armor you wish to modify into your hotbar and switch to it so that your character is visibly holding it in their main hand. The /enchant command strictly affects the item in the selected target's primary hand; it will not work on items resting in your inventory slots or off-hand.

Open the In-Game Chat Console

Press T or / on your keyboard in Java Edition to bring up the chat prompt. On Bedrock Edition, press right on the controller D-pad, tap the chat bubble icon on mobile screens, or press Enter/T on Windows.

Input the Enchant Command Syntax

Type the command using the standard syntax: /enchant <targets> <enchantment> [level]. Use @s to target yourself, followed by the enchantment ID and desired power level. In Java Edition, you can press Tab while typing to autocomplete valid enchantment identifiers.

For example, to grant your held weapon maximum sharpness, type /enchant @s sharpness 5. If you omit the level number at the end, Minecraft automatically defaults to level 1.

Execute the Command and Check Your Item

Press Enter (or tap the send arrow on touch devices) to run the command. You will see a confirmation message in chat, such as "Applied enchantment to player." Hover over your held item in your inventory to confirm that the enchanted shimmer and updated lore text are present.

Frequently Asked Questions

Why does the command say 'The item cannot support that enchantment'?

The /enchant command only accepts combinations that are legally possible on an anvil or enchanting table. For example, you cannot place Sharpness on a pickaxe or Protection on a sword using this command.

Can I enchant armor while wearing it using this command?

No. The /enchant command only targets the item actively held in your main hand. To enchant a helmet, chestplate, leggings, or boots, take them off and hold them in your main hand before running the command.

Can command blocks run the /enchant command on players?

Yes. You can configure a command block with /enchant @p <enchantment> [level] to automatically upgrade the held tool of the closest player when triggered by redstone.

You May Also Like