Minecraft Give Command Guide

Learn the /give command syntax, copy ready-to-use examples, add enchantments and item components, and troubleshoot common errors. When you want to build a command interactively, open the Give Command Generator.

🎮 Give Command Generator

Select an item, choose a target, set the quantity, and get a ready-to-paste /give command. Works with every item in our catalog.

Open the Generator →

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.give node.
  • 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

/give @s minecraft:diamond 64

Gives yourself a full stack of 64 diamonds.

/give @p minecraft:iron_sword 1

Gives the nearest player one iron sword.

/give Steve minecraft:golden_apple 5

Gives 5 golden apples to the player named Steve.

/give @a minecraft:cooked_beef 32

Gives every online player 32 cooked beef — useful for server-wide food drops.

Give Command with Enchantments (NBT, 1.13–1.20.4)

/give @s minecraft:diamond_sword{Enchantments:[{id:"sharpness",lvl:5},{id:"fire_aspect",lvl:2}]} 1

Gives a diamond sword with Sharpness V and Fire Aspect II.

/give @s minecraft:diamond_pickaxe{Enchantments:[{id:"efficiency",lvl:5},{id:"fortune",lvl:3},{id:"unbreaking",lvl:3}]} 1

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:

/give @s minecraft:diamond_sword[minecraft:custom_name='{"text":"Excalibur","color":"gold"}'] 1

Gives a diamond sword with a custom gold name.

/give @s minecraft:leather_chestplate[minecraft:dyed_color={rgb:16711680}] 1

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:

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 Tab while 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:diamond to 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.

Minecraft Give Command FAQ

What is the /give command in Minecraft?

The /give command places any item directly into a player inventory. It requires cheats or operator permissions and uses the modern namespaced item ID format (for example minecraft:diamond).

How do I give myself 64 diamonds?

Type /give @s minecraft:diamond 64 in chat. The @s selector targets yourself, minecraft:diamond is the item ID, and 64 is the quantity.

Can I give enchanted items with /give?

Yes. In Java Edition 1.20.5 and later you use item components: /give @s minecraft:diamond_sword[minecraft:custom_name='{"text":"Excalibur"}']. In versions 1.13 to 1.20.4 you use NBT tags: /give @s minecraft:diamond_sword{Enchantments:[{id:"sharpness",lvl:5}]} 1.

Why does /give say "Unknown item"?

The item ID is misspelled or missing the minecraft: namespace. Check the exact ID on our item ID list or block IDs page and copy it directly.

Do I need OP to use /give?

In singleplayer you need "Allow Cheats" enabled when creating the world (or open to LAN with cheats). On a multiplayer server you need operator status or the appropriate permission node.

What is the difference between /give and /setblock?

/give adds an item to a player inventory. /setblock places a block in the world at specific coordinates. Use /give for tools and consumables, /setblock for building.

How does the give command generator work?

Our give command generator lets you pick any item from the catalog, choose a target player (@s, @p, @a, or a name), set the quantity, and optionally add enchantments. It builds the correct Java Edition syntax automatically and gives you a one-click copy button.

Can I give myself items in survival mode?

Yes, if cheats are enabled. In singleplayer, enable Allow Cheats when creating the world or open to LAN with cheats. On a server, you need OP status. The /give command works in any game mode once permissions are granted.