What does /give do?
The give command adds an item to a player’s inventory. Choose a player, an item ID, and an amount to receive building materials, equipment, and more.
Commands require cheats or appropriate server permissions.
Basic syntax
/give <target> <item_id> [amount] [data] [components]Angle brackets mark required arguments; square brackets mark optional ones. Do not type the brackets. Omitting the amount gives one item.
| Argument | Meaning |
|---|---|
| Target | A player name or selector such as @s, @p, or @a. |
| Item ID | minecraft:diamond is an identifier, rather than the item’s display name. |
| Amount | How many items to give. The prototype generator accepts 1–64. |
Choosing a target
| Selector | Recipient |
|---|---|
@s | The executor: yourself when running from chat. |
@p | The player nearest to the execution position. |
@a | All players. Each receives the specified amount. |
@r | A randomly selected player. |
A command block is not a player, so @s in a command block does not give an item to a player. Use @p or a player name instead.
Examples
Give the nearest player 64 oak planks
/give @p minecraft:oak_planks 64Open these settings in the generator →Additional Bedrock arguments
Choose a named variant in the Item list to use its data value.
Set components as a JSON object after data. If the selected item has no data value, the generator inserts 0 when components are set.
/give @p minecraft:diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["stone","deepslate"]}}Open these settings in the generator →Troubleshooting
I don’t have permission to run the command
Check whether cheats are enabled for the world. On a server, ask the administrator to check your permissions.
The item ID is rejected
Use the item ID rather than a translated display name. Check the spelling and whether that item exists in your edition and version.
Make your own command
Choose a recipient, an item, and an amount, then copy your command.
Open the give generator →