/give Command in Minecraft Java Edition

Give Items to Players in Minecraft

Java EditionItems & InventoryPermission: Level 2Bedrock version →

The /give command lets you spawn any item directly into a player's inventory in Minecraft Java Edition. You can specify the exact item ID, add custom item components like enchantments, and choose how many items to grant at once.

Players and server operators use this command when testing builds, replacing lost equipment, or setting up rewards in custom maps. It requires permission level 2, which means cheats must be turned on in single-player worlds.

Syntax (Java 26.3, 1 form)

  1. /give <targets> <item> [<count>]

The forms you will use most

/give <targets> <item> [<count>]
Gives the specified item and an optional amount of that item to one or more target players.

Arguments

ArgumentTypeWhat it means
<targets>target selector
players only
The player or players who will receive the item, specified using a player name, a UUID, or a target selector like @p, @a, or @s.
<item>itemThe ID of the item to give, which can optionally include item components in square brackets such as enchantments.
<count>whole number
at least 1
An optional whole number of at least 1 that sets how many copies of the item to give.

Examples

Give Command GeneratorPick an item, amount, name, lore and enchantments and get a ready /give command.Open generator →

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Bedrock Edition also includes the /give command, but it uses a different syntax: /give <player: target> <itemName: Item> [amount: int] [data: int] [components: json]. Instead of attaching components directly to the item ID in square brackets like Java Edition does, Bedrock Edition puts an optional data integer and JSON components at the very end of the command.

See /give in Bedrock Edition →

FAQ

Why can I not use the /give command in my world?

The /give command requires permission level 2, so you must be a server operator or have cheats enabled in your single-player world settings.

Can I give items to mobs or armor stands with /give?

No, the <targets> argument in /give is restricted to players only, so targeting non-player entities will not work.

How do I give an enchanted item in newer Java versions?

Attach the enchantment component in square brackets directly to the item ID, such as diamond_sword[enchantments={sharpness:5}].

Related commands

/clear/enchant/item/loot/recipe

More on 9Minecraft