What Is the /give Command?
The /give command is one of the most frequently used commands in Minecraft Java Edition. It places any item directly into a target player's inventory without crafting, trading, or looting. Server administrators use it to set up kits, map makers use it to distribute quest items, and creative players use it to grab building materials instantly. Every give command requires a valid Minecraft item ID (or a block ID for placeable blocks) in the modern namespaced format.
How to Enable the /give Command
Before you can run /give, cheats must be enabled:
- Singleplayer: Toggle "Allow Cheats" when creating a new world. For an existing world, open to LAN and enable cheats for that session.
- Multiplayer server: You need operator (OP) status or a permission plugin that grants the
minecraft.command.givenode. - Command blocks: A command block always runs at permission level 2, which is sufficient for
/give.
/give Command Syntax
The modern Java Edition syntax (1.13 and later) is:
/give <targets> <item> [<count>]
Parameters
- <targets> — A player name or target selector such as
@s(yourself),@p(nearest player),@a(all players), or@r(random player). - <item> — A namespaced item ID like
minecraft:diamond. Optionally followed by item components in square brackets (1.20.5+) or NBT data in curly braces (1.13–1.20.4). - [<count>] — An optional positive integer. Defaults to 1. Values above the item's stack size will fill multiple inventory slots.
Give Command Examples
Basic Give Commands
Gives yourself a full stack of 64 diamonds.
Gives the nearest player one iron sword.
Gives 5 golden apples to the player named Steve.
Gives every online player 32 cooked beef — useful for server-wide food drops.
Give Command with Enchantments (NBT, 1.13–1.20.4)
Gives a diamond sword with Sharpness V and Fire Aspect II.
Gives a maxed mining pickaxe with Efficiency V, Fortune III, and Unbreaking III.
Give Command with Item Components (1.20.5+)
Starting with Java Edition 1.20.5, NBT tags on items were replaced by item components in square brackets:
Gives a diamond sword with a custom gold name.
Gives a red-dyed leather chestplate using the RGB color component.
Target Selectors Reference
Target selectors let you aim a give command at specific players or entities without typing usernames:
@s— The entity executing the command (yourself in chat).@p— The nearest player to the command's origin.@a— All players currently online.@r— One random player.@e— All entities (players, mobs, items, etc.). Use with caution — giving items to non-player entities usually has no effect.
You can add arguments to narrow the selection, for example @a[distance=..10] targets all players within 10 blocks, or @p[gamemode=creative] targets the nearest creative-mode player.
Popular Item IDs for Give Commands
These are the most commonly searched item IDs used with /give. Click any ID to open its detail page with a copy-ready command:
minecraft:diamond— Diamondminecraft:iron_ingot— Iron Ingotminecraft:gold_ingot— Gold Ingotminecraft:netherite_ingot— Netherite Ingotminecraft:emerald— Emeraldminecraft:diamond_sword— Diamond Swordminecraft:diamond_pickaxe— Diamond Pickaxeminecraft:elytra— Elytraminecraft:golden_apple— Golden Appleminecraft:enchanted_golden_apple— Enchanted Golden Apple
For the full catalog of 1538 reviewed entries, browse the Minecraft Item ID List. For placeable blocks, use the Minecraft Block IDs page instead.
Common /give Errors and Fixes
- "Unknown item" or "There is no such item": The item ID is misspelled or missing the
minecraft:prefix. Copy the exact ID from our item ID list. - "You do not have permission": Cheats are not enabled or you lack OP status on the server. See the enablement section above.
- "Invalid number" or count error: The count must be a positive integer. Negative numbers and decimals are rejected.
- NBT syntax error (1.13–1.20.4): Check that curly braces, square brackets, and quotes are balanced. Enchantment IDs use lowercase namespaced strings like
"sharpness", not numeric IDs. - Item components error (1.20.5+): The old
{...}NBT syntax no longer works on items. Switch to square-bracket components like[minecraft:custom_name='...'].
Tips for Using /give Efficiently
- Press
Tabwhile typing to autocomplete player names and item IDs in chat. - Use the up arrow key to recall and edit your previous commands.
- Chain multiple give commands in a single command block using a repeating command block or a function file.
- Most items stack to 64, but ender pearls stack to 16, snowballs to 16, and signs to 16. Giving more than the stack size fills extra slots.
- Use
/clear @p minecraft:diamondto remove specific items from a player's inventory. - For placing blocks in the world instead of giving items, use the Setblock Command Generator or the Fill Command Generator.
Generate a Give Command Now
Ready to create your command? Open the Give Command Generator to pick from the full item catalog, set the player target, adjust the quantity, and optionally add enchantments. The generator builds the correct syntax for Java Edition 1.20.5+ item components automatically, so you never have to worry about bracket placement or NBT formatting.
You can also pre-fill the generator from any item page on this site — just click the "Generate give command" button on an item detail page to jump straight to the generator with that item already selected.