/give command
The /give command adds any item to a player's inventory. You can set the amount, NBT data (Java) and components (1.20.5+). It's the go-to cheat for testing and administration.
Syntax
Java and Bedrock Edition
/give <player> <item> [amount] Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| player | selector/player | Yes | The player who receives the item. The @a selector gives the item to every player. |
| item | item ID | Yes | The item's ID in the minecraft: namespace, for example minecraft:diamond_sword or minecraft:netherite_pickaxe. |
| amount | number (1-6,400) | No | The number of items. Defaults to 1. The maximum is 6,400 (100 stacks of 64). Items that don't stack each go into a separate slot. |
Usage examples
Tips and tricks
Since Java 1.20.5, NBT data has been replaced by components. Instead of {Enchantments:[...]}, you write [enchantments={...}]. The old NBT syntax doesn't work in newer versions.
Bedrock Edition doesn't support NBT data or Java's item components in /give.
If the player's inventory is full, the item drops on the ground next to them.
Use /give @p air 1 to get... nothing. It doesn't throw an error, though, which comes in handy when testing command blocks.
Related commands
/clear
Removes items from a player's inventory. You can remove specific items or clear the whole invento...
/enchant
Puts an enchantment on the item a player is holding. It follows the compatibility rules and maxim...
/item
Replaces or modifies items in the inventory slots of an entity or a block (chest, hopper). The su...
/fetchprofile
Fetches a player's profile with skin data from Minecraft's servers, by name, UUID or entity. You ...
Frequently asked questions
How do you use the /give command in Minecraft?
Open the chat with the T or / key and type the command using this syntax: /give <player> <item> [amount]. The /give command adds any item to a player's inventory. You can set the amount, NBT data (Java) and components (1.20.5+). It's the go-to cheat for testing and administration.
What permissions does /give require?
The /give command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.
Does /give work in Bedrock Edition?
Yes, the /give command works in both Java Edition and Bedrock Edition, with similar syntax.



