Items

/give

Adds the specified item to a player's inventory. The full 1.20.5+ component syntax supports enchantments, custom names, lore, and any NBT-like component. Excess stack is dropped at the player's feet.

Syntax

Parameters

targets
entity selector
Which player(s) receive the item.
item
item ID
Namespaced item ID, e.g. minecraft:diamond_sword.
componentsoptional
components
Square-bracket component list: enchantments, custom_name, lore, etc.
countoptional
integer
How many to give (default 1; can exceed a single stack — extra items drop at the player's feet).

Command builder

Configure the options below to generate a ready-to-paste /give command.

Shown above the item in the inventory.
Italic text shown below the item name. One line per row.
1 compatible with Polished Granite Stairs.

Component syntax for Minecraft 1.21.8.

/give @p minecraft:polished_granite_stairs

Examples

  • Give the nearest player one diamond sword.

  • Give a full stack of cobblestone.

  • Sharpness V diamond sword via the component syntax.

  • Diamond sword renamed Excalibur.

Common questions

How do I use the /give command in Minecraft?

Enable cheats in your world, then type /give @p <item> [count]. @p means the nearest player. Item names use the modern minecraft:<name> form, like minecraft:diamond.

How do I give enchanted items?

Use the components syntax: /give @p minecraft:diamond_sword[minecraft:enchantments={"minecraft:sharpness":5}]. Stack multiple enchantments inside the same braces, separated by commas.

Permission level

/give requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.