/give Command Generator

Build a /give command with enchantments, a custom name and lore, in the correct syntax for your version and edition.

Try a preset
/give (26.2 (latest))
/give @p minecraft:netherite_sword[enchantments={"minecraft:sharpness":5}] 1
Minecraft version
Fully supported
Item
Item
Count
Enchantments
Add enchantment
Sharpness
Customize
Custom name
Lore (one line per row)
Unbreakable

About Minecraft /give Command Generator

Build a Minecraft /give command without memorising the syntax. Pick an item, stack on enchantments, set a custom name and lore, and copy a command that works in your exact version. The generator targets Java and Bedrock and updates the syntax automatically.

Minecraft has changed /give three times. On 1.20.5 and newer it uses item components, on 1.13 to 1.20.4 it uses an NBT tag, and on 1.8 to 1.12.2 it uses numeric ids and the old enchantment format. Choose your version and the generator does the right thing, including dropping enchantments that did not exist yet.

Try a sword, pickaxe or building-block command

Use the example buttons above to load an enchanted diamond sword, a Silk Touch pickaxe or a stack of stone. Each example replaces the item settings while keeping your selected version and edition. Edit the result before copying it.

Run your command in Minecraft

Select the same edition and version as your world, load an example and copy the generated command. Open chat in a world where you have permission to use commands, then paste and run it. For a Bedrock enchanted-item example, run the give command first, hold the new item, then run each enchant command.

If Minecraft rejects the command

Check your edition and version first, then check whether you have permission to use commands in that world or server. Copy the complete output. On Bedrock, keep the item in your hand when running the separate enchant commands. Read any warnings shown by the generator before trying again.

Give an enchanted item with a command

Select a sword, tool or piece of armor, then add any compatible enchantment and set its level (the generator only offers enchantments that fit the item). On Java the enchantments go straight into the /give command. On Bedrock, where /give cannot enchant, you get the give command plus the matching /enchant lines to run while holding the item.

Custom name and lore

Type a custom name and as many lines of lore as you like. On Java these are written into the command as text components. Bedrock cannot set names or lore from a command, so the generator tells you to use an anvil instead rather than producing a command that silently fails.

Which versions are supported?

Java 1.8, 1.12.2, 1.16.5, 1.18.2, 1.20.1, 1.21 and 26.2, plus Bedrock. That covers every command syntax era, so whether you are on an old anarchy server or the latest release, the command matches.

Frequently asked questions

How do I give an enchanted item in Minecraft?
Pick the item, add enchantments and levels, then copy the /give command. On Java the enchantments are built into the command; on Bedrock you also run the /enchant lines it generates while holding the item.
Why does the command look different on 1.20.5 and 1.21?
Minecraft 1.20.5 replaced the item NBT tag with item components, so the syntax uses square brackets like [enchantments=...] instead of curly braces. The generator switches automatically based on your version.
Can I set a custom name and lore?
Yes on Java. Bedrock cannot set names or lore from a command, so rename the item on an anvil. The generator flags this for you.
Does it work for old versions like 1.8?
Yes. On 1.8 and 1.12.2 it uses the legacy format with numeric ids and the old ench tag, and skips any enchantment that did not exist in that version.
Is the command generator free?
Yes, it runs entirely in your browser with no sign-up.

Related tools