Minecraft Give Command Generator

Configure a Java Edition item and copy a version-aware /give command that is ready to run.

Item settings

804 items
minecraft:diamond_sword · max stack 1
Name formatting
Lore

Add one or more tooltip lines.

Enchantments

10 enchantments are compatible with this item.

Attribute modifiers

Add a numeric modifier and choose how and where it applies.

What is the Minecraft Give Command Generator?

The Minecraft Give Command Generator is a visual tool for creating Java Edition /give commands without writing item-component or legacy NBT syntax by hand. It combines a player target, a searchable vanilla item, a legal stack amount, and optional names, lore, compatible enchantments, and attribute modifiers in one validated command.

How to use the Give Command Generator

  1. Choose a Java version.Select the command format used by the Minecraft version running your world or server.
  2. Select the target and item.Enter a player name or selector, search for an item, and set a valid stack amount.
  3. Add optional item data.Style the custom name and lore, then add compatible enchantments or attribute modifiers when needed.
  4. Check the command preview.Correct any highlighted validation message before using the generated command.
  5. Copy or download it.Paste the command into chat, a command block, or download it as a .mcfunction file.

Build a valid Minecraft item command

The preview updates immediately, but it is withheld when a field is invalid so an obvious bad command is never presented as ready. The item catalogue uses a Java 1.20.4 baseline, keeping every listed item available across all three supported command-format choices instead of showing newer IDs that fail in the legacy option.

Java modern components and legacy NBT

Java 1.20.5 replaced the old item tag format with item components. Java 1.21.5 then moved text components from JSON wrapped in an SNBT string to inline SNBT, and simplified enchantment component data. Choose the exact syntax family for your world: Java 1.21.5–26.2, Java 1.20.5–1.21.4, or Java 1.20.4 and earlier legacy NBT.

Attribute modifiers changed again inside the middle syntax family, so the generator asks for a narrower sub-version only when attributes are present. Bedrock Edition is intentionally not included because its item command capabilities and syntax do not match Java Edition.

Names, lore, and special characters are escaped safely

Custom names and lore are encoded for the selected component or NBT format. Quotes, apostrophes, backslashes, line breaks, and Unicode are treated as text rather than pasted directly into command syntax. Enchantment levels and item stack limits are validated before copying.

Continue your command workflow

Design a layered flag with the Minecraft Banner Maker, or create structured chat and tellraw output in the Minecraft Text Generator.

Frequently Asked Questions

Which Minecraft versions does the give command generator support?

It supports Java 1.21.5–26.2 inline SNBT text components, Java 1.20.5–1.21.4 first-generation item components, and Java 1.20.4 legacy item NBT.

Does the generator support Bedrock Edition?

No. This version is explicitly for Java Edition because Bedrock item command capabilities and syntax differ substantially.

Are quotes and backslashes safe in custom names and lore?

Yes. User text is encoded for the selected JSON or SNBT layer, including quotes, apostrophes, backslashes, control characters, and Unicode.

Why will the command preview sometimes disappear?

The preview is withheld when the target, item, amount, lore, or enchantment settings are invalid, so a known-bad command is not offered for copying.

Explore more Minecraft tools