Minecraft /give command
Java EditionBedrock EditionSince Classic 0.0.15a (multiplayer test)
Quick answer: Gives one or more items to a player. Syntax:
/give <target> <item> [count]The /give command adds items directly to a player's inventory, without needing to craft or find them. In Java Edition you can also attach NBT data to customize the item; Bedrock Edition uses a data value and the components json format instead.
Syntax
| Edition | Syntax |
|---|---|
| Java | /give <target> <item> [count] |
| Bedrock | /give <player: target> <itemName: Item> [amount: int] [data: int] |
Targets / arguments: @p nearest player, @a all players, @r random player, @s yourself, @e entities (not for /give). Requires: Cheats enabled / operator level 2.
Examples
/give @p minecraft:diamond 64Give the nearest player a stack of 64 diamonds
/give @s minecraft:iron_swordGive yourself an iron sword
/give Steve minecraft:enchanted_golden_apple 3Give the player Steve 3 enchanted golden apples
Tips
- Item names need the minecraft: namespace in Java Edition; in Bedrock it is optional.
- Count is optional and defaults to 1. Maximum stack sizes still apply per item.
- In Java 1.20.5+, NBT in /give was replaced by item components, e.g. /give @s diamond_sword[minecraft:custom_name='{"text":"Excalibur"}'].