Minecraft /give Command Generator (Enchanted Items, Name, Lore)
Build a /give command for enchanted, named items with a description: apply enchantments with no level limit and make them unbreakable. 1.21 and 26.x syntax.
Enchantments
If the command exceeds 256 characters it won't fit in chat; paste it into a command block or run it from the console (without the leading /).
How to give an enchanted item in Minecraft?
With Minecraft 1.20.5, item data moved from NBT to components; in 1.21.5 it changed once more. Enchantments are now written as [enchantments={sharpness:10}] and names as custom_name={text:"...",color:"gold"} instead of JSON text. That is why most old commands on the internet don't work. This tool generates the syntax that matches the version you choose.
- Level limit: With /give, enchantments can be given up to level 255; the
/enchantcommand, however, does not go above the normal maximum level. - Enchanted book: If you choose
enchanted_bookas the item, the tool writes the enchantments asstored_enchantments; the book can be used in an anvil. - Italic name: Custom names appear in italics by default; the tool turns this off with
italic:false. - Incompatible enchantments (e.g. Sharpness + Smite) can be given together with the command but cannot be combined in an anvil.
All item codes are on the Item / Block IDs page. To combine enchantments in survival at the lowest cost, use Anvil Calculator.
Frequently Asked Questions
How do I write an enchanted item command in Minecraft?
In the current version (1.21.5 and later): /give @p diamond_sword[enchantments={sharpness:10,unbreaking:5}]. Between 1.20.5 and 1.21.4, enchantments are written inside levels:{...}. The tool produces the correct syntax for the version you choose.
Can an enchantment with a high level like Sharpness 1000 be given?
No; with /give the enchantment level can be at most 255. The /enchant command doesn't go above the normal maximum level.
Why don't old give commands work?
In 1.20.5, item components replaced NBT tags, and in 1.21.5 the text format changed again. Old commands like {Enchantments:[...]} give errors in the current version.
Other Minecraft Server Tools
Is your server ready? Add your server to the list, collect votes and automatically reward your players. All tools →