All commands
โœจ
UtilityJava โœ“Bedrock โœ“

/enchant

Add an enchantment to the item a player is holding.

Overview

What is the /enchant command?

The /enchant command adds an enchantment to the item a player is currently holding โ€” no enchanting table or anvil required. You name the enchantment and an optional level, and it applies instantly if the item is compatible.

It's a quick way to gear up for testing, though it respects normal level caps unless you use /give with custom data for over-levelled enchantments.

When to use it: Use /enchant to add a specific enchantment to the held item without an enchanting table.

At a glance

Syntax

Syntax
/enchant <target> <enchantment> [level]
commandtargetcoordsvaluerequiredoptional

See it

What it does

๐Ÿ—ก๏ธ
แ”‘แ“ญแ”‘ส–แ“ตแ’ฒใƒชแ”‘
The item shimmers with enchantments

Anatomy

Every part, explained

  1. 1
    /enchantCommandRequired

    Enchants the held item.

  2. 2
    <target>TargetRequired

    Whose held item gets enchanted.

  3. 3
    <enchantment>EnchantmentRequired

    Which enchantment to apply.

  4. 4
    [level]LevelOptional

    Optional - enchantment level. Defaults to 1.

Your turn

Try it yourself

Playground
4 tokens ยท press Enter to run

Copy & paste

Examples

/enchant @s sharpness 5

Max out a sword's Sharpness.

/enchant Steve unbreaking 3

Make Steve's tool more durable.

/enchant @s protection

Apply Protection at level 1.

Avoid these

Common mistakes

โœ•/enchant sharpness 5
โœ“/enchant @s sharpness 5

Name a target before the enchantment.

โœ•/enchant @s sharpness 99
โœ“/enchant @s sharpness 5

Level can't exceed the enchantment's max.

Good to know

Frequently asked questions

How do you enchant an item with a command?
Hold the item and run /enchant @s <enchantment> [level], e.g. /enchant @s sharpness 5.
Why does /enchant say the enchantment can't be applied?
/enchant follows survival rules: the item must support that enchantment and there can be no conflicting one. For anything goes, use /give with enchantment data.
Can /enchant exceed the normal max level?
No โ€” it caps at the enchantment's vanilla maximum. Higher levels need /give with custom item components.

Keep going

Related commands