How to use the Minecraft /give Command Generator
- Choose your version. The syntax changed in 1.20.5 and again in 1.21.5. Pick the one that matches your server.
- Pick the item. Search by name or ID. The enchantment list shows only the ones that normally apply, and Show all lists every enchantment.
- Add details. Tick enchantments and set levels, or press Max out. Add a custom name, lore, unbreakable or a damage value.
- Copy and run it. Paste the command into chat, a command block or the server console. You need operator permissions or cheats.
Which version syntax do I need?
- Java 1.21.5 and newer uses item components such as
enchantments={sharpness:5}and text written as a compound. - Java 1.20.5 to 1.21.4 also uses components, but enchantments sit inside
levelsand names are JSON in quotes. - Java 1.13 to 1.20.4 uses the older item data in curly braces, like
{Enchantments:[...]}. - Bedrock cannot set enchantments in
/give. The tool gives you the item and a set of/enchantlines to run while holding it.
About the remove-italics option
Custom names and lore show in italics by default. Remove default italics adds a tag that turns that off, so your text looks the way you typed it.
Enchantments above the normal level
Java accepts levels above the normal maximum when commands are used, up to 255. The tool warns you when you go past the usual cap, and also when an enchantment does not normally fit the item or clashes with another one. The command still runs.
Frequently asked questions
Why does my command say it is unknown or invalid?
Almost always the version. Switch the version box to match your server. The 1.21.5 update changed how enchantments and text are written.
How do I get a command block or enable cheats?
You need operator permissions on a server, or cheats on in a single player world. Server owners can use the /op command from the console.
Does it handle potions, heads and spawn eggs?
It gives you the base item. Potions, player heads, banners and similar items need extra data that this tool does not add.
Why is the item missing an enchantment I want?
Only enchantments that normally apply to the item are listed. Tick Show all to add any enchantment.
What data does it use?
Item and enchantment lists come from Minecraft 26.1 data. Newer items appear when the data is refreshed.