Build your /give command

Components (1.20.5+)

Enchantments
Custom name
Unbreakable

Command (copy into chat)

Component syntax quick reference

ComponentMeaningExample
enchantmentsMap of enchantment → levelenchantments={"minecraft:sharpness":5}
custom_nameItem name (text component)custom_name={text:"My Sword",color:"gold"}
loreDescription lineslore=[{text:"line1"}]
unbreakableNo durability lossunbreakable={}
enchantment_glint_overrideForce enchant shimmerenchantment_glint_override=true
max_stack_sizeStack size cap (1-99)max_stack_size=16
foodEat properties (nutrition/saturation)food={nutrition:4,saturation:0.8}

Common item IDs

diamond_swordDiamond Sword
netherite_pickaxeNetherite Pickaxe
bowBow
elytraElytra
diamond_helmetDiamond Helmet
maceMace
golden_appleGolden Apple
enchanted_golden_appleEnchanted Golden Apple
tntTNT
obsidianObsidian
beaconBeacon
shulker_boxShulker Box
ender_chestEnder Chest
command_blockCommand Block
barrierBarrier
diamondDiamond
netherite_ingotNetherite Ingot
emeraldEmerald
ender_pearlEnder Pearl
ender_eyeEye of Ender
nether_starNether Star
totem_of_undyingTotem of Undying
enchanted_bookEnchanted Book
name_tagName Tag
experience_bottleBottle o' Enchanting
tridentTrident
spawnerSpawner
dragon_eggDragon Egg
lightLight
structure_blockStructure Block

FAQ

Which versions does this support?
The tool generates 1.20.5+ item component syntax (the square-bracket form). For 1.21.2+ the enchantments component is a plain map; for 1.20.5-1.21.1 it must be wrapped in levels:{} — use the version switch above.
Can enchantments exceed their natural max level?
Yes. /give accepts any level 1-255 regardless of the natural cap (e.g. Sharpness 10). Extremely high levels may cause odd behaviour in game.
What about 1.20.4 and earlier?
Older versions use NBT instead of components, e.g. /give @s diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5s}]} 1. This tool does not generate that syntax.
The command says 'Unknown item' — why?
Check the item ID spelling and whether you are on Java Edition. Bedrock Edition uses different /give syntax without components.
How do I get command permission?
In single player enable cheats when creating the world; on a server you need OP. Command blocks are required for some selectors like @e with complex filters.
✓ Last reviewed 2026-09-22 · applicable version noted per entry Minecraft mechanics change with every update — this guide is only guaranteed to work in the stated version.

Comments

Powered by GitHub Discussions — sign in with GitHub to comment.