This Minecraft tutorial explains how to use the /enchant command with screenshots and step-by-step instructions.
You can enchant an item held by a player whenever you want using the /enchant command in Minecraft. Let's explore how to use this cheat (game command).
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Enchant Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac) 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20, the syntax to enchant the item that a player's holding is:
/enchant <targets> <enchantment> [level]
In Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12, the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantment> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- targets or player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantment is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
Enchant Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantmentName> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantmentName is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
Enchant Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantmentName> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantmentName is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
Enchant Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantmentName> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantmentName is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
Enchant Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantmentName> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantmentName is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
Enchant Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantmentName> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantmentName is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
Enchant Command in Minecraft Education Edition
In Minecraft Education Edition, the syntax to enchant the item that a player's holding is:
/enchant <player> <enchantmentName> [level]
/enchant <player> <enchantmentID> [level]
Definitions
- player is the name of the player (or a target selector) that you wish to enchant an item for.
- enchantmentName is the name of the enchantment to add. (See Minecraft Enchantment Names.)
- enchantmentID is the ID of the enchantment to add. (See Minecraft Enchantment IDs.)
- level is optional. It is the level of enchantment to apply. If you don't specify a level, it will apply the enchantment at Level I.
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac) 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19 and 1.20
To enchant the item held by DigMinecraft with Knockback II:
/enchant DigMinecraft knockback 2
To enchant the item held by the nearest player with Blast Protection IV:
/enchant @p blast_protection 4
To enchant the item held by a random player with Sharpness V:
/enchant @r sharpness 5
To enchant the item held by all players with Silk Touch I:
/enchant @a silk_touch 1
Example in Java Edition (PC/Mac) 1.11 and 1.12
To enchant the item held by DigMinecraft with Knockback II:
/enchant DigMinecraft knockback 2
or
/enchant DigMinecraft 19 2
Example in Pocket Edition (PE)
To enchant the item held by DigMinecraft with Protection IV:
/enchant DigMinecraft protection 4
or
/enchant DigMinecraft 0 4
To enchant the item held by the nearest player with Fire Protection IV:
/enchant @p fire_protection 4
To enchant the item held by a random player with Unbreaking III:
/enchant @r durability 3
To enchant the item held by all players with Efficiency V:
/enchant @a efficiency 5
Example in Xbox One Edition
To enchant the item held by DigMinecraft with Luck of the Sea III:
/enchant DigMinecraft luck_of_the_sea 3
or
/enchant DigMinecraft 23 3
To enchant the item held by the nearest player with Respiration II:
/enchant @p respiration 2
Example in PS4 Edition
To enchant the item held by DigMinecraft with Flame I:
/enchant DigMinecraft flame 1
or
/enchant DigMinecraft 21 1
To enchant the item held by the nearest player with Knockback II:
/enchant @p knockback 2
To enchant the item held by a random player with Looting III:
/enchant @r looting 3
To enchant the item held by all players with Quick Charge III:
/enchant @a quick_charge 3
Example in Nintendo Switch Edition
To enchant the item held by DigMinecraft with Bane of Arthropods IV:
/enchant DigMinecraft bane_of_arthropods 4
or
/enchant DigMinecraft 18 4
To enchant the item held by the nearest player with Frost Walker II:
/enchant @p frost_walker 2
Example in Windows 10 Edition
To enchant the item held by DigMinecraft with Projectile Protection IV:
/enchant DigMinecraft projectile_protection 4
or
/enchant DigMinecraft 4 4
To enchant the item held by the nearest player with Bane of Arthropods IV:
/enchant @p bane_of_arthropods 4
To enchant the item held by a random player with Power V:
/enchant @r power 5
To enchant the item held by all players with Infinity I:
/enchant @a infinity 1
Example in Education Edition
To enchant the item held by DigMinecraft with Aqua Affinity I:
/enchant DigMinecraft aqua_affinity 1
or
/enchant DigMinecraft 8 1
To enchant the item held by the nearest player with Fortune III:
/enchant @p fortune 3
To enchant the item held by a random player with Knockback II:
/enchant @r knockback 2
To enchant the item held by all players with Fire Aspect II:
/enchant @a fire_aspect 2
First, it's important to note that when you use the /enchant command you can enchant the item that a player is holding. This is the item that is currently selected in the hot bar for that player.
In this example, we are going to enchant the item that the player called DigMinecraft is holding with Knockback II:
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the item that is selected in DigMinecraft's hot bar will glow purple because it has been enchanted.
You have now enchanted the diamond sword held by DigMinecraft with Knockback II.
Congratulations, you have learned how to use the /enchant command in Minecraft.
Find the enchantment ID or name to use in the /enchant command from one of the lists below: