Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheats/give

Switch game

23 Wikis · pick your game
/give

Command

/give

Puts items into the inventory of players.

Syntax

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

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe players who receive the items. One or more players.
<item>ItemThe item id, optionally followed by components in square brackets.
<count>Whole numberHow many items each player gets. Whole number, at least 1 and at most 100 stacks of the item. Defaults to 1.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inOperators on multiplayer servers, singleplayer worlds with cheats enabled, and command blocks and functions.
ResultReports "Gave <count> <item> to <player>" or to the number of players. The number /execute store saves is the number of players who received the items.
Maximum countOne command can give at most 100 full stacks of the item: 6400 for items that stack to 64, 1600 for items that stack to 16 and 100 for items that do not stack. A larger count fails with "Can't give more than ...".
Default countWithout a count, one item is given.
Full inventoryItems that do not fit into the inventory are dropped at the player's position. Only that player can pick them up, and they can be picked up right away.
Item componentsComponents can be added in square brackets directly after the item id, for example an enchantments component.

Examples

/give @s minecraft:diamond 64

Gives you 64 Diamonds.

/give @p minecraft:diamond_sword

Gives the nearest player one Diamond Sword.

/give @a minecraft:golden_apple 5

Gives every player 5 Golden Apples.

/give @s minecraft:ender_pearl 16

Gives you a full stack of 16 Ender Pearls.

/give @s minecraft:diamond_sword[minecraft:enchantments={"minecraft:sharpness":5}]

Gives you a Diamond Sword with Sharpness V.

/give @s minecraft:oak_planks 6400

Gives you 100 stacks of Oak Planks, the most one command allows.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)