Minecraft give command generator

Pick an item, a name and enchantments, and copy the command.

/give @p diamond_sword[enchantments={sharpness:5}] 1

What the command does

/give puts an item in a player's inventory. The part in square brackets (components) sets the name, enchantments and flags. Older versions used NBT in curly braces for the same job.

Questions

Which version should I pick?

Use "1.21.5 and newer" for current servers. Versions 1.20.5 to 1.21.4 use a slightly different enchantment format, and 1.20.4 and older use NBT tags in curly braces.

Where do I run it?

In the game chat as an operator, or in the server console without the slash. See how to op yourself in our guide.

My command says unknown or incomplete.

The version setting is the usual cause. Check that the item id exists in your version and that you picked the matching format.

Related guides

More free tools

Ready to run it?

3 GB is free forever, with no card and no ads. Add memory when you need it.

Make a free server