Give Items to Players in Minecraft
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.
/give <targets> <item> [<count>]/give <targets> <item> [<count>]| Argument | Type | What 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> | item | The 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. |
/give @s appleGives a single apple to the player running the command.
/give @p torch 64Gives 64 torches to the nearest player.
/give @a cooked_beef 16Gives 16 pieces of cooked beef to every player currently online.
/give Alex emerald 32Gives 32 emeralds specifically to the player named Alex.
/give @s command_blockGives one command block to yourself for map making.
/give @p diamond_sword[enchantments={sharpness:5}] 1Gives the closest player one diamond sword with the Sharpness 5 enchantment component.
Measured from the game files of every Java release from 1.13 to 26.3.
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.
The /give command requires permission level 2, so you must be a server operator or have cheats enabled in your single-player world settings.
No, the <targets> argument in /give is restricted to players only, so targeting non-player entities will not work.
Attach the enchantment component in square brackets directly to the item ID, such as diamond_sword[enchantments={sharpness:5}].