Minecraft Give Commands Guide

Learn how to use the /give command in Minecraft with our complete guide. Find syntax, examples, and tips for using item IDs.

What is the /give Command?

The /give command is one of the most useful commands in Minecraft. It allows you to give any item to yourself or other players, making it essential for server admins, map makers, and creative mode players.

/give Command Syntax

The basic syntax for the give command is:

/give <player> <item> [<count>] [<data>] [<components>]

Parameters Explained

  • player: The target player. Use @p for nearest player, @s for yourself, @a for all players, or a specific username.
  • item: The item ID, such as minecraft:diamond_sword or minecraft:stone.
  • count: (Optional) Number of items to give, from 1 to 64. Defaults to 1.
  • data: (Optional) Data value for legacy versions. Not used in modern Minecraft.
  • components: (Optional) Item components like enchantments, custom names, or lore.

Give Command Examples

Basic Examples

/give @p minecraft:diamond 64

Gives 64 diamonds to the nearest player.

/give @s minecraft:iron_sword 1

Gives 1 iron sword to yourself.

/give Steve minecraft:golden_apple 5

Gives 5 golden apples to the player named Steve.

Advanced Examples

/give @p minecraft:diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5}]}

Gives a diamond sword enchanted with Sharpness V (Minecraft 1.20 and earlier).

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

Gives a diamond sword enchanted with Sharpness V (Minecraft 1.21+ component syntax).

Target Selectors

Target selectors are powerful variables that select players based on conditions:

  • @p - Nearest player
  • @s - The player executing the command
  • @a - All players
  • @r - Random player
  • @e - All entities (includes mobs, items, etc.)

How to Enable Commands

To use the /give command, you need one of the following:

  • Singleplayer: Enable "Allow Cheats" when creating a world, or open to LAN with cheats enabled.
  • Multiplayer: Have operator (OP) privileges on the server.
  • Creative Mode: Commands are always available in creative mode.

Popular Item IDs for Give Commands

Here are some of the most commonly used item IDs with the give command:

  • minecraft:diamond - Diamond
  • minecraft:iron_ingot - Iron Ingot
  • minecraft:gold_ingot - Gold Ingot
  • minecraft:netherite_ingot - Netherite Ingot
  • minecraft:emerald - Emerald
  • minecraft:diamond_sword - Diamond Sword
  • minecraft:diamond_pickaxe - Diamond Pickaxe
  • minecraft:elytra - Elytra
  • minecraft:golden_apple - Golden Apple
  • minecraft:enchanted_golden_apple - Enchanted Golden Apple

Browse our complete item ID list to find any item ID you need.

Tips and Tricks

  • Press Tab while typing a command to autocomplete player names and item IDs.
  • Use the up arrow key to recall previous commands from chat history.
  • You can give multiple items at once using command blocks.
  • The maximum stack size for most items is 64, but some items like ender pearls stack to 16.
  • Use /clear to remove items: /clear @p minecraft:diamond