OmniGame logoOmniGame

/give Command

Gives one or more items directly to one or more players' inventories. If the inventory is full, the items are dropped as entities at the player's location. Since Java 1.20.5, items use the component system (bracket notation) instead of legacy NBT tags.

Syntax
/give <targets> <item> [<count>]
Permission: OP level 2Edition: Both

Examples

/give @p minecraft:diamond_sword 1/give @a minecraft:bread 32/give PlayerName minecraft:netherite_chestplate[minecraft:enchantments={protection:4,unbreaking:3}]/give @s minecraft:written_book[minecraft:written_book_content={title:'Guide',author:'Admin',pages:['Hello World']}]

Notes

Since 1.20.5, item data uses the component system (e.g. [minecraft:enchantments={...}]) instead of NBT tags. Count range is 1–2,147,483,647; max 100 stack-equivalents per invocation on Java. Some technical items cannot be given and will fail silently.

More commands