News
Game
Guides
Downloads
Versions
/give
COMMANDS ITEMS & INVENTORY CHEATS · LEVEL 2 Added in 1.14 or earlier

/give command in Minecraft

/give puts any item or block straight into a player's inventory, in the amount you choose. Use it to test a build, hand out starter kits on a server or create items with custom components, such as an enchanted weapon or a renamed tool.

Syntax

/give <targets> <item> [<count>]
ArgumentExpectsWhat it does
targetsPlayer selectorone or severalWho receives the items: a player name, @p for the nearest player, @a for everyone or @s for yourself.
itemItem with componentsItem ID, with or without minecraft:, optionally followed by components in square brackets such as [custom_name="Boss"].
countoptionalWhole numberat least 1How many items to give, 1 by default. Amounts above one stack are split into several stacks.
All 2 forms
  • /give <targets> <item>
  • /give <targets> <item> <count>

Examples

A full stack of diamonds

/give @p minecraft:diamond 64

Gives 64 diamonds to the nearest player.

Java 26.3
The inventory after the command: a full stack of 64 Diamonds in the first hotbar slot Scene setup: Taken with @s instead of @p: in single player both give the stack to you. In-game screenshot · Java Edition 26.3

Golden apples for everyone

/give @a minecraft:golden_apple 3

Every online player gets three golden apples.

Java 26.3

An enchanted diamond sword

/give @s minecraft:diamond_sword[enchantments={sharpness:5,unbreaking:3}]

You receive a Diamond Sword with Sharpness V and Unbreaking III already applied.

Java 26.3
The tooltip of the Diamond Sword with its Sharpness V enchantment Scene setup: Taken with sharpness:5 only; with this example, Unbreaking III is listed under it too. In-game screenshot · Java Edition 26.3

A pre-named name tag

/give @s minecraft:name_tag[custom_name="Boss"]

Gives a Name Tag already called Boss, no anvil needed.

Java 26.3

An unbreakable pickaxe

/give @s minecraft:netherite_pickaxe[unbreakable={}]

The unbreakable component stops the pickaxe from losing durability.

Java 26.3
Interactive tool

Command generator

Fill in the fields, copy the command, paste it in the chat. Syntax checked against Java Edition 26.3.

Turn on JavaScript to use the interactive version.

/give @p diamond 64

Calculated from the Java Edition 26.3 game files

IDs for /give

Diamond Sworddiamond_swordNetherite Swordnetherite_swordNetherite Pickaxenetherite_pickaxeElytraelytraTotem of Undyingtotem_of_undyingEnchanted Golden Appleenchanted_golden_appleGolden Applegolden_appleEnder Pearlender_pearlFirework Rocketfirework_rocketTridenttridentMacemaceCommand Blockcommand_blockBarrierbarrierDebug Stickdebug_stickLightlightStructure Blockstructure_blockMonster SpawnerspawnerKnowledge Bookknowledge_book

Items →

Cheats and permission levels

/give needs permission level 2. In singleplayer, switch on "Allow Commands" when you create the world, or choose "Open to LAN" and turn on "Allow Cheats" for the current session. On a server, only operators can run it, or a Command Block.

Items with components

Since 1.20.5, item data goes in square brackets right after the ID: diamond_sword[enchantments={sharpness:5}] or name_tag[custom_name="Boss"]. The old NBT syntax, such as {Enchantments:[...]}, is rejected. Components also go past the levels that /enchant accepts, for example a Diamond Sword with Sharpness 10.

Common errors

  • Unknown item 'minecraft:diamnd': the ID is misspelled or does not exist in this version.
  • No player was found: the name or selector matches nobody online.
  • Full inventory: whatever does not fit drops at the player's feet.

A count above one stack is split into several stacks. To take items back, use /clear. To fill an exact slot, use /item, and for random chest loot, /loot.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/give: FAQ

Can I give an item that is already enchanted?

Yes. Add the enchantments component after the ID, for example /give @s diamond_sword[enchantments={sharpness:5,unbreaking:3}]. This also works above the normal maximum level.

What happens if the player's inventory is full?

The items that do not fit are dropped on the ground at the player's position. Nothing is lost as long as someone picks them up.

How do I use /give?

Type it in the chat with cheats on: /give <targets> <item> [<count>].

Who can use /give?

Cheats on, or operator level 2.

Copy & paste lists with /give

Related commands

/clearCheats/itemCheats/enchantCheats/lootCheats/recipeCheats