Give Items to Players in Bedrock Edition
The /give command lets you place any item directly into a player's inventory in Minecraft Bedrock Edition. You can select one player or a whole group using target selectors, choose the item type, and decide how many of that item they receive.
Players and server admins use this command to hand out building materials, replace lost gear, or reward players during custom games. Because it creates items out of thin air, you need the Game Directors permission level and cheats enabled in your world to run it.
/give <player: target> <itemName: Item> [amount: int] [data: int] [components: json]Give item to target
| Argument | Type | What it means |
|---|---|---|
amount | int | Amount to give to player. Default: `1`. |
components | json | Optional. Specify if the item has components to call required component events. |
data | int | Optional. Fireworks related `data` required to give a firework type item. |
itemName | Item | An `enum` of the type of item to give. |
player | target | A player name `string` or `target selector` to identify the player. |
/give @s diamond_swordGives one diamond sword to the player who runs the command.
/give Steve apple 16Gives 16 apples to the player named Steve.
/give @a cobblestone 64Gives a full stack of 64 cobblestone blocks to every player currently in the world.
/give @p command_block 1Gives one command block to the nearest player.
/give @r firework_rocket 32 1Gives 32 firework rockets with a data value of 1 to a random player.
/give Alex emerald 10 0 {}Gives 10 emeralds with a data value of 0 and an empty JSON component object to the player named Alex.
In Minecraft Java Edition, the command uses a slightly shorter syntax: /give <targets> <item> [<count>]. Unlike Bedrock Edition, the Java version does not have separate arguments at the end for a data integer or a JSON components object.
The /give command requires cheats to be enabled in your world and your account must have the Game Directors permission level to use it.
If you leave out the optional amount number, the command defaults to giving 1 of the chosen item.
The optional data integer is used to specify firework-related data when you are giving a firework type item to a player.