/give

The /give command puts an item directly into a player's inventory. You can specify the quantity, durability or block data, and special item components like adventure mode placement rules. If the player's inventory is full, the extra items drop on the ground at their feet.

Operator (cheats on)Cheats must be onChecked on 1.26.66.1

Open the give command generator →

Syntax

Exactly as the game prints it. <angle brackets> are required, [square brackets] are optional.

/give <player: target> <itemName: Item> [amount: int] [data: int] [components: json]

What it is used for

Parameters

ParameterWhat it means
player: targetThe player or players who will receive the item. Accepts a player name or target selectors (@p, @a, @r, @s). Does not work on non-player entities.
itemName: ItemThe identifier of the item or block to give, such as diamond_sword or minecraft:cyan_terracotta. The minecraft: namespace prefix is optional for vanilla items.
amount: intOptional. The number of items to give, from 1 to 32767. Defaults to 1 if omitted.
data: intOptional. The data value or durability damage of the item. For tools and armor, a higher number means more wear. Defaults to 0 if omitted.
components: jsonOptional. A JSON object holding Bedrock item components: minecraft:can_place_on, minecraft:can_destroy, minecraft:item_lock, and minecraft:keep_on_death.

Examples

Every example below was sent to a real Bedrock Dedicated Server (1.26.66.1) and accepted by the game.

/give @s command_block

Gives one command block to the player running the command.

/give @p diamond_pickaxe 1

Gives one brand-new diamond pickaxe to the nearest player.

/give @a cooked_beef 64

Gives a stack of 64 cooked beef to every player online.

/give @r minecraft:yellow_shulker_box 1

Gives one yellow shulker box to a random player.

/give @s diamond_sword 1 1500

Gives yourself a heavily damaged diamond sword with 1500 durability points already used.

/give @a[m=adventure,r=15] torch 16 0 {"minecraft:can_place_on":{"blocks":["stone","deepslate_copper_ore"]}}

Gives 16 torches to Adventure mode players within 15 blocks that can only be placed on stone or deepslate copper ore.

/give @p iron_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["granite","diorite","polished_basalt"]}}

Gives the nearest player an iron pickaxe that can break granite, diorite, and polished basalt in Adventure mode.

/give @s compass 1 0 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}

Gives yourself a compass that cannot be dropped, crafted with, or moved out of your inventory.

/give @a[tag=team_blue] blue_stained_glass_pane 1 0 {"minecraft:item_lock":{"mode":"lock_in_slot"},"minecraft:keep_on_death":{}}

Gives all players tagged team_blue a blue stained glass pane that is locked in its slot and stays in their inventory when they die.

/execute as @a[scores={coins=100..}] at @s run give @s nether_gold_ore 5

Gives 5 nether gold ore to every player whose coins score is 100 or higher.

What we found when testing

Notes from running this command on a real Bedrock Dedicated Server (1.26.66.1).

Wrong item names fail, wrong component values may not

An item ID that does not exist is rejected immediately with a syntax error that points at the bad word. A wrong value inside the components JSON, such as an unknown item_lock mode, is only checked once a matching player is found, so the same command can look fine from a command block when nobody is in range.

/give @p compass 1 0 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}

Common mistakes

Trying to use Java Edition NBT tags like {Enchantments:[...]} or {display:{Name:...}} in the components JSON.

Bedrock Edition only supports four item components in /give: minecraft:can_place_on, minecraft:can_destroy, minecraft:item_lock, and minecraft:keep_on_death. To give enchanted or renamed items, prepare the item in-game, save it inside a structure block, and load it on the player with /structure.

No targets matched selector when using @e[type=armor_stand] or @e[type=zombie].

The /give command only targets players. To put items on armor stands, mobs, or specific equipment slots, use /replaceitem instead.

Syntax error when adding JSON components right after the amount.

You cannot skip parameters in the middle of a command. Always include both the amount and the data value (usually 1 0) before typing the JSON object.

Using an old numeric data value for colored blocks like wool 1 14 and getting a syntax error or white wool.

Most colored blocks now have separate item IDs. Use the specific name from the item list, such as red_wool or cyan_terracotta, with a data value of 0.

Tips

Questions about /give

Can I give an item with custom enchantments or a custom name using /give?

No, Bedrock Edition's /give command does not support enchantment or display name tags in the JSON parameter. You can use /enchant on the item after the player holds it, or save a custom enchanted and anvil-renamed item using a Structure Block and spawn it at the player's location with /structure load.

What happens if I /give more items than a player can hold?

The command fills all available inventory slots first and drops the remaining items on the ground at the player's position. The dropped items can be picked up by anyone once space opens up.

What is the difference between lock_in_inventory and lock_in_slot?

With lock_in_inventory, the player can move the item around inside their own inventory and hotbar, but cannot drop it or put it in a chest. With lock_in_slot, the item is frozen in the exact slot it lands in and cannot be moved at all.

More from 9Minecraft

Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.