Published by
MC Commander operator
Page updated
15 July 2026
Review scope
HTML, JavaScript, PHP and internal links checked. Output not tested in Minecraft is not guaranteed in every environment. Editorial policy

Copy-ready starting examples

/give @p minecraft:diamond_sword 1
/give @p minecraft:diamond_sword[minecraft:custom_name='{"text":"Azure Sword","color":"aqua"}'] 1

How to build it

  1. Select the target and item in the Give generator.
  2. Add a custom name, lore, enchantments or unbreakable data.
  3. Send the output to the syntax checker and test the shortest working form first.

Common mistakes

Edition and version notes

Java 1.20.5+ uses a different item format from 1.20.4 and earlier. Bedrock cannot express every Java custom item feature in one Give command.

Open generator

Frequently asked questions

Can I paste these commands directly?

The short examples are intended as starting points. Confirm the edition and version, then test them in a copied world.

What should I check when a command turns red?

Check brackets, quotation marks, IDs, selectors and version support, then paste it into Command Explainer.

Does this work in both Java and Bedrock?

Java 1.20.5+ uses a different item format from 1.20.4 and earlier. Bedrock cannot express every Java custom item feature in one Give command.

Related pages

← Minecraft Command Solutions