How to give items with a command
The give command drops any item straight into a player's inventory.
The command
give PlayerName item amountFrom the Console there is no leading slash. In game, as an operator, put a / in front.
give Steve diamond 64 a full stack of diamonds
give Alex netherite_pickaxe 1 one netherite pickaxe
give @a cooked_beef 16 16 steak to everyone online
give @p oak_log 8 8 logs to the nearest playerItem ids
Use the item's id, which is its in-game name in lower case with underscores: oak_planks, golden_apple, iron_ingot, redstone_torch.
Two things worth knowing:
- Tab completion works in the Console. Start typing an item and press Tab rather than guessing at spelling.
- The
minecraft:prefix is optional.diamondandminecraft:diamondboth work. Items from a mod always need their own prefix, likecreate:cogwheel.
Amounts
The amount is optional and defaults to 1. You can ask for more than a stack, for example give Steve diamond 200, and it arrives as several stacks.
If a player's inventory is full the leftover items are dropped on the ground at their feet, not lost. They still have to pick them up before they despawn.
Enchanted and custom items
On 1.20.5 and newer, extra data goes in square brackets after the item:
give Steve diamond_sword[enchantments={sharpness:5}] 1Older versions use a different format entirely, with {} instead. If a command is rejected with a syntax error, that mismatch is nearly always why: check which version your server is on.
Was this helpful?
Still need help? Contact support.