Skip to tool
VoxelKit

Java 1.21+ Data Components & 1.20.4 NBT

Minecraft /give Command Generator (Java 1.21+ & 1.20.4)

Build error-free Minecraft /give commands with custom names, lore, unbreakable flags, and multi-enchantments in modern Java 1.21+ Data Component syntax or 1.20.4 NBT.

Quick presets
Enchantments & levels
Generated /give command

Paste directly into Java Edition chat (with cheats/OP enabled) or a Command Block.

More VoxelKit Drafting Tools

Every tool runs offline in your browser and exports ready-to-use files plus 1200×630 share cards.

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

  1. Check permissions: You need Cheats enabled in singleplayer (or Operator permissions on a multiplayer server).
  2. Choose chat or a Command Block:
    • Standard Minecraft chat accepts up to 256 characters. Shorter /give commands paste directly into chat after pressing T.
    • 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.
  3. 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.

Frequently Asked Questions

Why do older Minecraft /give commands fail in Java 1.21+?

Java Edition 1.20.5 and 1.21+ replaced legacy NBT curly braces with square-bracket Item Data Components. Select Java 1.21+ in the Syntax version dropdown above to generate valid modern syntax.

My /give command is too long for chat—how do I run it?

Minecraft chat cuts off inputs at 256 characters. If your command includes custom names, lore, and several enchantments, paste it into a Command Block (/give @p minecraft:command_block) and trigger it with a button instead.

Does this /give generator work on Bedrock Edition?

This builder targets Minecraft Java Edition (1.21+ Data Components and 1.20.4 NBT). Bedrock Edition uses a different command format and does not support Java item data components.

Can I set enchantment levels above Survival limits?

Yes. Type any enchantment level between 1 and 255 in the level box next to a checked enchantment—for example, Efficiency 10 or Sharpness 20 for custom maps and mini-games.