Skip to main content
← All Guides
Command Reference

How to Use the /give Command

The /givecommand spawns any item straight into a player's inventory. Master the four parts, target, item, count, and components, and you can hand out a stack of diamonds or a fully enchanted, custom-named sword in one line.

server console, survival.astroworldmc.com
12:04:18[Server thread/INFO]: Steve issued server command:
> /give @p diamond 64
Gave 64 [Diamond] to Steve
// with components, custom name + lore
/give @p diamond_sword[custom_name='{"text":"Excalibur"}'] 1
Gave 1 [Excalibur] to Steve _
The anatomy of /give

Every /give follows the shape /give <target> <item>[components] [count]. The target is a selector (@p@s@a@r) or a player name. The item is a namespaced ID like diamond or diamond_sword. The count is optional and defaults to 1, with a hard cap of 6400. On 1.20.5 and later, square-bracket components replaced the old NBT tags, use custom_nameenchantmentsloreand damage to build precise items. A successful run echoes Gave 64 [Diamond] to Steve in the console.

Quick answers

+

What is the exact syntax of /give?

/give <target> <item>[components] [count]. Example: /give @p diamond 64 gives the nearest player 64 diamonds and prints Gave 64 [Diamond] to Steve.
+

Why do I get 'Unknown or incomplete command'?

You lack permission. Run /op yourname from the console, set your permission level to 2+, or turn on Allow Cheats for the world. Also check the item ID is spelled correctly.
+

How do I give an enchanted item?

Use the enchantments component on 1.20.5+: /give @p diamond_pickaxe[enchantments={efficiency:5,unbreaking:3}] 1. On older versions you used the old NBT {Enchantments:[...]} tag instead.
+

Can I give more than 64 of something?

Yes. /give @p arrow 6400 works and the server splits the items across multiple inventory slots. The hard cap per command is 6400.
+

How do I name an item with /give?

Use the custom_name component with a JSON text string: /give @p diamond_sword[custom_name='{"text":"Excalibur"}'] 1. It shows up as the named item in the result message and the item tooltip.
+

Does /give work on a multiplayer server?

Yes, identically. Run it from the server console or as an OP in chat. Plugins like EssentialsX add an alternative /i and /give with friendlier syntax and tab-complete.

/give at a glance

Syntax

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

Who may run it

OP (L2)

What it does

Gives one or more items to one or more players. The item can include NBT data via component syntax.

Three things /give is actually used for

/give @s minecraft:diamond_pickaxe
Puts one plain diamond pickaxe in your inventory.
/give @p minecraft:oak_planks 64
Hands the nearest player a full stack of oak planks.
/give @a minecraft:cooked_beef 16
Gives everyone online sixteen steaks at once, useful at the start of an event.

/give sits with the player commands in Minecraft, 12 of them in total. The ones with a guide here: /effect, /enchant, /experience, /gamemode, /teleport, /tp, /xp.

Every command with its full argument list lives in the command reference.

Blocks and items in this guide

Oak Planks in MinecraftOak PlanksDiamond in MinecraftDiamondString in MinecraftStringTarget in MinecraftTarget

All 4 of these are named in the guide above, starting with Oak Planks. Look them up in the item database.

More guides on this site

Guides that go with this one

How to Use the /summon Command in Minecraft
Spawn any mob with /summon, set exact coordinates with ~ ~ ~, and customize it using NBT tags like...
How to Use the /clone Command in Minecraft
Copy any region to a new spot with /clone. Learn the source and destination syntax, the replace, masked,...
WorldEdit, Generation Commands (//generate)
Master the worldedit generate command for creating spheres, cylinders, tori, and custom math-based...
How to Give XP With Commands in Minecraft
Use /xp add to give experience levels or points to players. Full /xp syntax, target selectors, removing...
How to Set the World Spawn in Minecraft
Use /setworldspawn to fix where new players appear, and /spawnpoint to send specific players to a chosen...
How to Use the /fill Command in Minecraft
Fill any region with one block using /fill x y z x2 y2 z2 block. Learn solid, hollow, outline and...
Database
Command Reference
Syntax, arguments and examples for every command.
Hosting
Managed Hosting
Skip the setup: a managed server online in minutes.
Database
Item Database
Every item with its stats, IDs, recipes and uses.
Guides
More Server & Admin guides
Run a server: setup, hosting, permissions, worlds and crossplay.