Build your /give command
Components (1.20.5+)
Enchantments
Custom name
Unbreakable
Command (copy into chat)
Component syntax quick reference
| Component | Meaning | Example |
|---|---|---|
enchantments | Map of enchantment → level | enchantments={"minecraft:sharpness":5} |
custom_name | Item name (text component) | custom_name={text:"My Sword",color:"gold"} |
lore | Description lines | lore=[{text:"line1"}] |
unbreakable | No durability loss | unbreakable={} |
enchantment_glint_override | Force enchant shimmer | enchantment_glint_override=true |
max_stack_size | Stack size cap (1-99) | max_stack_size=16 |
food | Eat properties (nutrition/saturation) | food={nutrition:4,saturation:0.8} |
Common item IDs
diamond_swordDiamond Swordnetherite_pickaxeNetherite PickaxebowBowelytraElytradiamond_helmetDiamond HelmetmaceMacegolden_appleGolden Appleenchanted_golden_appleEnchanted Golden AppletntTNTobsidianObsidianbeaconBeaconshulker_boxShulker Boxender_chestEnder Chestcommand_blockCommand BlockbarrierBarrierdiamondDiamondnetherite_ingotNetherite IngotemeraldEmeraldender_pearlEnder Pearlender_eyeEye of Endernether_starNether Startotem_of_undyingTotem of Undyingenchanted_bookEnchanted Bookname_tagName Tagexperience_bottleBottle o' EnchantingtridentTridentspawnerSpawnerdragon_eggDragon EgglightLightstructure_blockStructure BlockFAQ
- 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.