/enchant
Enchants the item held in a player's main hand. Only allows enchantments that are compatible with the held item and does not exceed the enchantment's maximum level.
Syntax
/enchant <targets> <enchantment> [<level>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| targets | entity | Required | The player(s) whose held item to enchant. |
| enchantment | resource | Required | The enchantment to apply (e.g., sharpness, efficiency, protection). |
| level | integer | Optional | The enchantment level. Cannot exceed the enchantment's max level. Defaults to 1. |
Examples
/enchant @s sharpness 5Enchants your held item with Sharpness V.
/enchant @p unbreaking 3Enchants the nearest player's held item with Unbreaking III.
/enchant @s mending 1Applies Mending to your held item.
Common Mistakes
- Trying to enchant beyond the max level (e.g., Sharpness 6), the command will fail. Use /give with component data for levels beyond the normal max.
- Applying conflicting enchantments (e.g., Sharpness on an item that already has Smite), the command will fail.
Notes
This command respects enchantment compatibility rules. To bypass these restrictions, use /give with component syntax or /item modify to apply arbitrary enchantments.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting