Enchant Command Generator Minecraft Java and Bedrock
Use this Enchant Command Generator to quickly create the /enchant command in Minecraft Java and Bedrock Edition 1.21+ and 26+. Select the target (@a, @p, @e, @s, @r), choose the enchantment and the desired level. The available enchantments adjust automatically based on the selected edition. Ideal for maps, servers and datapacks.
Select your Minecraft edition:
Automatically Generated Enchant Command
enchant @p sharpness 1Customize Command Target (Optional)
Want cheap and lag-free Minecraft hosting?
I recommend Sparked Host: affordable plans, great performance, easy panel and fast support.
🚀 Start your Minecraft ServerHow to Use the Enchant Command in Minecraft
The /enchant command applies an enchantment directly to the item the target is holding in their main hand. It is widely used to quickly create powerful items in adventure maps, minigame servers and during datapack testing.
In Java Edition, the basic format is:
/enchant <target> <enchantment> [level]
The level is optional — if omitted, the enchantment will be applied at level 1. The enchantment must be compatible with the item the target is holding.
Enchant Command Examples (Java)
Enchant the nearest player's sword with Sharpness 5
/enchant @p sharpness 5
Enchant all players' armor with Protection 4
/enchant @a protection 4
Enchant the player's pickaxe with Efficiency 5
/enchant @p efficiency 5
Enchant the player's bow with Infinity 1
/enchant @p infinity 1
Enchant Command Examples (Bedrock)
Enchant with Sharpness in Bedrock
/enchant @p sharpness 5
Enchant with Fortune in Bedrock
/enchant @p fortune 3
Frequently Asked Questions
How to enchant an item in Minecraft with a command?
Use /enchant @p sharpness 5 to enchant the nearest player's item.
Does the enchant command work in Bedrock Edition?
Yes, the syntax is practically identical, but some enchantment names differ between Java and Bedrock.
What is the maximum enchantment level?
It depends on the enchantment. Sharpness goes up to 5, Protection up to 4, Efficiency up to 5, and Mending is always level 1.
Can I use /enchant on all items?
No. The enchantment must be compatible with the item. Trying to enchant an incompatible item will return an error in the chat.
How to enchant all players at the same time?
Use /enchant @a sharpness 5 to apply the enchantment to the item in all players' hands.