Skip to main content
Mechanics

The /give command in Minecraft: syntax and examples

By July 13, 2026No Comments

What the /give command does

The /give command puts an item straight into a player’s inventory. You type the command, name a player, name an item, and the item shows up in their bag with no crafting, mining, or trading involved. It is the fastest way to hand yourself a diamond pickaxe for a test build or to load every player on a server with the same starter kit.

Because the command makes items out of nothing, /give only runs when cheats are on. In a single-player world that means turning on “Allow Cheats” when you make the world, or opening the world to LAN with cheats switched on. On a multiplayer server you need operator status.

The command works in both Java and Bedrock editions. The way you write extra item data differs a little between them, but the core pattern is the same.

How to turn on cheats first

If the command does nothing or tells you that you lack permission, cheats are almost always the reason. There are three common ways to enable them.

When you create a new world, open the world options and switch “Allow Cheats” on before you generate it. In Java this lives under “More World Options,” and in Bedrock it sits in the Game settings under “Cheats.”

For a single-player Java world that already exists, pause the game, choose “Open to LAN,” set “Allow Cheats” to On, and click “Start LAN World.” Cheats stay on until you close the world. This is handy when you forgot to enable them at creation.

On a server, an operator runs /op <playername> from the console or another op account. The /give command needs permission level 2, which any opped player has by default.

The basic syntax

Every version of the command follows one shape:

/give <target> <item> [amount]

The target is who receives the item. The item is what they get, written as an item ID. The amount is optional and defaults to 1 if you leave it out.

A few quick examples:

  • /give @s diamond gives one diamond to yourself.
  • /give @s diamond 64 gives a full stack of 64.
  • /give Steve oak_planks 32 gives 32 oak planks to the player named Steve.

Item IDs use the minecraft: namespace, but you can drop the prefix when you type in chat. minecraft:oak_planks and oak_planks both work. If you are not sure of an ID, type the first few letters and press Tab to cycle through valid matches.

Finding the right item ID

The hardest part of /give is usually remembering the exact item ID. The ID is the internal name, which is almost always the display name in lowercase with spaces turned into underscores. “Iron Ingot” becomes iron_ingot, “Light Blue Dye” becomes light_blue_dye, and “Cooked Beef” becomes cooked_beef.

A few items break that rule, which is why tab completion matters. Steak is cooked_beef, a clock is clock, and the wool colors are split by color, such as red_wool and blue_wool. When a name does not behave, type /give @s followed by a space and the start of the word, then tab through the list until you see the right block or item.

You can also pull the ID off an item you already hold. In Java, press F3 and H to turn on advanced tooltips, then hover over the item in your inventory. The game prints the full ID at the bottom of the tooltip, ready to copy into your command.

Choosing who gets the item

The target slot accepts a player name typed directly, or one of the target selectors that start with an @ symbol. The common ones are:

  • @s targets yourself, the one running the command.
  • @p targets the nearest player.
  • @a targets every player on the world or server.
  • @r targets one random player.

So /give @a bread 16 hands every player 16 bread at once, which is a quick way to feed a whole group. Keep in mind that /give only delivers to players. Pointing it at a mob or a dropped item does nothing useful, and a selector like @e that catches non-player entities can throw an error.

Setting the amount

Leave the amount off and you get a single item. Type a number and you get that many. You can ask for more than one stack at a time, and the game splits the total into as many full stacks as it needs to fill your inventory.

Two things trip players up here. First, items that do not stack, such as tools, weapons, and armor, fill one inventory slot each. Asking for five diamond swords gives you five swords across five slots, not a stack. Second, if your inventory cannot hold everything you asked for, the leftover items drop on the ground next to you, where they can despawn after a few minutes. Clear some space before requesting large amounts.

The amount also has an upper limit built into the command. Request an unreasonably large number and the command rejects it instead of running, so stick to sensible totals.

Giving enchanted or custom items

You can attach extra data to an item so it arrives already enchanted, renamed, or otherwise customized. How you write that data depends on your version.

In Java Edition 1.20.5 and later, item data goes inside square brackets right after the item ID. An enchanted sword looks roughly like this:

/give @s diamond_sword[enchantments={"minecraft:sharpness":5}]

In Java versions before 1.20.5, the same idea used curly-brace NBT tags instead of brackets:

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

The exact keys shifted across versions, so if a command from an old tutorial fails, a version mismatch is the likely cause. Tab completion inside the brackets will show you the data fields your version actually accepts.

Bedrock Edition handles custom data differently and does not use the Java bracket syntax. For most everyday gifts on Bedrock you stick to the plain /give player item amount form, and you build enchanted gear with other tools instead.

Java and Bedrock differences

On Java the full form is /give <target> <item>[components] [count], with any custom data in square brackets and item IDs that take the optional minecraft: prefix.

On Bedrock the form is /give <player> <itemName> [amount] [data] [components]. The extra data value is a number that selects an item variant on some older items. Bedrock also leans on tab suggestions, which makes typing long item names much easier on a controller.

For plain item gifts, the two editions behave the same. The differences only show up once you start attaching enchantments or other custom data.

Common mistakes to avoid

Most failed /give commands come down to a short list of problems. Cheats are off, which blocks the command entirely. The item ID is misspelled or you typed a display name like “Oak Planks” instead of the ID oak_planks. The target selector is missing, so the game does not know who should get the item. Or your inventory is full, so the items drop and quietly despawn.

When something does not work, retype the command slowly and use Tab at each step. The game only suggests valid players, items, and data fields, so tab completion catches most typos before you hit Enter.

Frequently asked questions

Why does the /give command say I do not have permission?

Cheats are off, or you are not an operator on a server. Turn on cheats through the world options or the Open to LAN menu, or have an op run /op on your name.

How do I give an item to another player?

Use their exact in-game name in the target slot, like /give Alex torch 64, or use @a to give the item to everyone at once.

Can I give an enchanted item with /give?

Yes, on Java. Add the enchantment data in square brackets after the item ID in 1.20.5 and later, or in curly-brace NBT tags in older versions. Bedrock does not use that syntax for enchantments.

How many items can I give at once?

More than a stack. The game splits the total into full stacks until your inventory is full, then drops the rest on the ground. The command does cap the amount, so very large numbers are rejected.

Does /give work in survival mode?

Yes, as long as cheats are on. The command does not care about your game mode, only about whether cheats and permissions allow it.

How do I remove items I gave by mistake?

Use the /clear command. Running /clear @s empties your own inventory, and /clear @s diamond removes only the diamonds you handed yourself. It is the natural partner to /give when you overshoot an amount.

What is the difference between /give and the creative inventory?

The creative inventory lets you pull items by hand while in creative mode. The /give command works in any game mode with cheats on, can target other players, and can hand out custom or enchanted items in one line.

One tip that saves time

Lean on Tab. Type /give, press Tab to fill the target, press it again to browse item IDs, and keep tabbing through the data fields. The game only offers valid options, so you spend less time guessing IDs and more time building the kit you wanted.