Items

/enchant

Enchant the held item.

Syntax

Parameters

targets
entity selector
Which player's held item to enchant.
enchantment
enchantment ID
Namespaced ID, e.g. minecraft:sharpness.
leveloptional
integer
Level to apply (clamped to max for that enchantment).

Command builder

Configure the options below to generate a ready-to-paste /enchant command.

Holds the item to enchant.

The /enchant command only applies to the item the target is currently holding.

/enchant @s minecraft:sharpness

Examples

  • Apply Sharpness V to the nearest player's held item.

  • Apply Mending I (its max level) to the held item.

Permission level

/enchant requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.