ItemsJavaBedrock

/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.

What is /give used for?

What /give is for

Adds any item directly to a player's inventory, with full component syntax for enchantments, custom names, lore, and other NBT-like data.

When to use /give

Use it to hand out gear in survival without crafting, assemble starter kits for minigames, or generate custom items you simply can't make in a crafting table — like a renamed, pre-enchanted weapon.

Tips & gotchas

Counts can exceed a single stack (the extra drops at the player's feet). The square-bracket [components] format introduced in 1.20.5 replaced the older curly-brace NBT tags, so older command snippets may need updating.

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).

/give command generator

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 Enchanted Book.
Swift Sneakminecraft:swift_sneak

Component syntax for Minecraft 1.21.8.

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.