Minecraft Give Command Generator for Custom Items
Choose an item, give it a coloured name and lore, add any enchantment at any level and copy the /give command. The generator writes the right syntax for your version, from the newest item components to the old NBT format.
Item
Name and lore
Enchantments
Extras
Bedrock options
Bedrock's /give can't add names, lore or enchantments. It can lock items and keep them on death.
How to make a custom item with /give
- Type the item ID, for example
diamond_sword,netherite_pickaxeorelytra. The list suggests every item in Java 26.3. - Choose your version. The format of custom items changed twice in recent years, so the right version matters.
- Give it a name and lore, add enchantments at any level from 1 to 255 and pick extras such as Unbreakable.
- Copy the command and run it with cheats on. If it is longer than 256 characters, paste it into a command block instead of chat.
Why old /give commands stopped working
| Version | Format | Example |
|---|---|---|
| Java 1.21.5 – 26.3 | Item components, text written as SNBT | diamond_sword[custom_name={text:"Blade",italic:false},enchantments={sharpness:10}] |
| Java 1.20.5 – 1.21.4 | Item components, text as JSON strings | diamond_sword[custom_name='{"text":"Blade"}',enchantments={levels:{sharpness:10}}] |
| Java 1.14 – 1.20.4 | NBT tags in curly brackets | diamond_sword{display:{Name:'{"text":"Blade"}'},Enchantments:[{id:"minecraft:sharpness",lvl:10s}]} |
| Bedrock | JSON components, no names or enchantments | diamond_sword 1 0 {"minecraft:keep_on_death":{}} |
In Java 1.20.5 Mojang replaced item NBT with data components in square brackets. In 1.21.5 text inside components switched from JSON strings to SNBT, the levels wrapper around enchantments was removed, and hiding tooltip lines moved to a single tooltip_display component. A command written for one of these versions will fail in the others.
Popular custom items
- God sword: netherite sword with Sharpness 255, Looting 10, Fire Aspect 10, Sweeping Edge 10 and Unbreakable.
- Super pickaxe: netherite pickaxe with Efficiency 255 and Fortune 10. It mines most blocks instantly.
- Knockback stick: stick with Knockback 10, a favourite for PvP minigames.
- Unbreakable elytra: elytra with Unbreakable, so you never need Mending again.
Enchantment levels above the normal maximum only exist through commands. Anvils won't combine them, and on servers they can be removed by anti-cheat plugins.
Tips
- Turn off italics: renamed items are shown in italics. The generator adds
italic:falseto your name unless you turn it off. - Several colours in one name: add another part in the name editor to change colour or style partway through.
- Attribute bonuses (newest versions only) replace the item's default stats, so a sword with a damage bonus loses its normal attack speed unless you add it back.
- Need other commands, like effects or game rules? Try the command generator. For a signed book, use the book generator.