Java 1.21+ Data Components vs Java 1.20.4 Legacy NBT
In Minecraft Java Edition 1.20.5 and 1.21+, Mojang replaced legacy curly-brace item NBT ({Enchantments:[...]}) with square-bracket Item Data Components ([minecraft:enchantments={levels:{...}}]). Old /give commands copied from outdated guides fail with red syntax errors on modern servers and realms.
VoxelKit's /give Command Builder defaults to Java 1.21+ Data Components and includes a one-click version switch to Java 1.20.4 Legacy NBT if you still run an older modded or SMP server.
How to run your generated /give command
- Check permissions: You need Cheats enabled in singleplayer (or Operator permissions on a multiplayer server).
- Choose chat or a Command Block:
- Standard Minecraft chat accepts up to 256 characters. Shorter
/givecommands paste directly into chat after pressingT. - Long custom items with custom names, lore lines, and multiple enchantments can exceed 256 characters. Give yourself a Command Block (
/give @p minecraft:command_block), paste the generated command inside, and power it with a button or lever—Command Blocks accept up to 32,500 characters.
- Standard Minecraft chat accepts up to 256 characters. Shorter
- Share builds with teammates: Click Copy Shareable Link to generate a URL that pre-loads your exact item, version, display name, and enchantment levels for another player or admin.
Key syntax differences at a glance
| Feature | Java 1.21+ Data Components | Java 1.20.4 Legacy NBT |
|---|---|---|
| Container syntax | [component=value,...] |
{Tag:value,...} |
| Custom name | minecraft:custom_name='{"text":"..."}' |
display:{Name:'{"text":"..."}'} |
| Lore line | minecraft:lore=['{"text":"..."}'] |
display:{Lore:['{"text":"..."}']} |
| Unbreakable | minecraft:unbreakable={} |
Unbreakable:1b |
| Enchantments | minecraft:enchantments={levels:{"minecraft:mending":1}} |
Enchantments:[{id:"minecraft:mending",lvl:1s}] |
Testing items in Creative build worlds
Custom tools are especially useful when prototyping large Survival builds in a Creative flat world. Use the Max Netherite Pickaxe preset to clear test terrain fast, or experiment with the 1.21 Mace preset (density, wind_burst, unbreaking, mending) on trial-chamber arenas.
When you finish testing your gear, map out your base visuals with our Minecraft Pixel Art Converter, refine wall transitions in the Block Gradient & Palette Studio, or design a crisp multiplayer badge in the 64×64 Server Icon Maker.