Skip to main content

/give

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

Category
Player
Permission Level
Game Master
Version Added
1.0

Syntax

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

Parameters

NameTypeRequiredDescription
targetsentityRequiredThe player(s) to give the item to. Must resolve to players.
itemitem_stackRequiredThe item to give. Supports item IDs and component syntax (e.g. diamond_sword[damage=10]).
countintegerOptionalThe number of items to give (1-6400). Defaults to 1. Amounts over a single stack are split across multiple stacks.

Examples

/give @p diamond 64

Gives the nearest player a full stack of 64 diamonds.

/give @a minecraft:written_book[written_book_content={title:"Rules",author:"Server",pages:['"Welcome to Astroworld!"']}] 1

Gives every player a written book with custom content.

/give @s netherite_sword[enchantments={levels:{sharpness:5}}] 1

Gives yourself a netherite sword enchanted with Sharpness V using component syntax.

Common Mistakes

Notes

In 1.20.5+ the NBT tag syntax was replaced with component syntax using square brackets. Items exceeding the max stack size are distributed across multiple inventory slots.

Related Commands

/clear/item/loot

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting