Minecraft Give Command: How to Use it to Spawn Any Item!

minecraft give command, blocks, header


This post was last updated on September 1, 2023

The Minecraft give command lets you spawn any item you want. This is a powerful tool that makes it easy to create new items with specific conditions.

You can also use it to spawn enchanted items or add items with a range of extra conditions.

Writing out the Give Minecraft command is relatively complex compared to many commands in the game – so make sure you follow this guide to understand exactly how it works!

Writing out the Give Minecraft command

How to use the Minecraft Give Command

How to use the Minecraft Give Command

The Minecraft Give command is relatively easy to use, although there are a few different sections. This is definitely one of the best minecraft commands in the game, so it’s definitely worth working out how to use it.

Note, that the exact way the console commands work is slightly different between the Java and Bedrock versions of the game.

First, we show the general command, then we break down the arguments – which are the different sections of the command that affect the way it works. After this, we’ll give you some examples to help you to understand how the command works in more detail.

Simply type these Minecraft commands into your chat box.

To do this:

  • Press the chat button (it’s typically “C” on a PC)
  • Type a forward slash, followed by the desired command.

The Give Command in Minecraft Java Edition

To use the give command in Minecraft Java, enter the following text into your chat box:

  • /give <target> <item> [<count>]

The way these Minecraft commands works is explained in more detail in the next section.

The Give Command in Minecraft Bedrock Edition

To use the give command in Minecraft Java, enter the following text into your chat box:

  • /give <player> <itemName> [amount] [data value] [components]

Understanding Arguments

Understanding Arguments

This section explains the arguments. Change these to control the way the command works. Combining a range of arguments lets you create items with very specific use conditions and rules.

Java Give Command Arguments

  • <target> Defines the player or entity to give the specified item to.
  • <item> Defines the type of item given.
  • <count> Defines the number of items given to the targets (between 1 and 2147483647)

Bedrock Give Command Arguments

  • <player: target> = Targets the player(s) to spawn items in the player’s inventory.
  • <itemName> = Defines the item to spawn – can either be the name, or an ID number tag.
  • <amount> = Defines the number of items to spawn (between 1 and 32767)
  • <data> = A number that modifies the properties of the item. For example, give a number to determine which type of wooden planks or other wooden blocks are generated.
  • = Adds modifying rules to the item. Choose from:
    • minecraft:can_place_on,
    • minecraft:can_destroy
    • minecraft:item_lock
    • minecraft:keep_on_death

Give Command Examples

Here are some examples to demonstrate some uses of the Minecraft Give Command

Java Edition Give Command Examples

This sample command gives the nearest player an iron sword with a description saying “A basic iron sword”:

  • /give @a minecraft:iron_sword{display:{Lore:[“\”A basic iron sword\””]}} 1?
Java Edition Give Command Examples

Give the nearest player 10 Night Vision potions:

  • /give @p potion{Potion:”minecraft:night_vision”} 1?0

Give a random player a Sharpness V iron sword:

  • /give @r iron_sword{Enchantments:[{id:”minecraft:sharpness”,lvl:5}]} 1?

Give a random player 64 level 2 Wither Potions with Knockback 2:

  • /give @r potion{Enchantments:[{id:”minecraft:knockback”,lvl:2}],CustomPotionEffects:[{Id:20,Amplifier:1}]} 64

Give yourself 5 blocks of gold that can be placed on dirt and can destroy nearby cobblestone blocks.

  • /give @s minecraft:gold_block{CanPlaceOn:[“minecraft:dirt”],CanDestroy:[“minecraft:cobblestone”]} 5

Bedrock Edition Give Command Examples

Give all players an iron sword that will not be dropped on death:

  • /give @a iron_sword 1 0 {“keep_on_death”: {}}?

To give a random player a diamond that can’t be used for crafting, or dropped:

  • /give @r diamond 1 0 {“item_lock”: {“mode”: “lock_in_inventory”}}?

To give all players a diamond shovel that is locked in a slot, and can’t be dropped or used for crafting:

  • /give @a diamond_shovel 1 0 {“item_lock”: {“mode”: “lock_in_slot”}}?

Give all players a night vision potion:

  • /give @a potion 1 5?

Using Minecraft Command Generators – Easy Commands!

Using Minecraft Command Generators

Because the system for writing the Give command can be relatively complex, sometimes it’s easier to use a command generator.

These websites make the process of writing a Give command much simpler. You just select the items you want to spawn, add the modifiers, and voila! The generator gives you a perfectly written command to paste into a chat message.

Other Extra Tips

Here are some other useful tips when working with the Give Command.

Unlocking Commands in Single-Player Mode

To use the Give command, you need to either be in creative mode or have cheat codes enabled in survival mode.

If you didn’t enable cheat codes when you were creating your world, you can activate them using this cheeky method:

  1. Pause the game.
  2. Click the “Open to LAN” button.
  3. Click the cheats button until it says “Allow Cheats”.
  4. Start the LAN mode.

This method lets you use cheats in a single-player survival world. Unfortunately, it’s only active during the session. So you’ll need to reactivate it every time you start playing your world.

Unlocking Commands in a Multiplayer Minecraft World

If you are playing in a multiplayer server, you’ll need to have operator permissions to be able to use commands. If you are hosting the server, you should automatically be on the OP list, however, you can easily add your name to the server config files.

However, if it isn’t your server, you’ll have to ask another operator or server administrator to give you OP permissions.

Ask nicely, although in larger servers they will be very strict on who they give these permissions to as it puts the server at risk of being griefed.

Command Blocks

minecraft give command, blocks, header

You can put the Give command inside a command block to make it redstone activated. This is useful for multiplayer servers to add spawn items, rewards, or any other creative use you can imagine.

Simply place the command block, right-click it, then enter the command into the text field and hit add.

Now, these commands can be activated any time the command blocks are connected to an active redstone signal.

How to Give Yourself a Command Block in Minecraft

To give yourself a command block in Minecraft, simply type:
/give @s command_block

Or, in creative mode, you can go into the Controls options, and enable the “Operator Creative Tab” option to pull them from the creative inventory.

Extra Commands:

Here are some other useful commands to know!

You can use this command to give a player free experience points:

  • /experience add <player> <amount>

If you want to learn information about certain commands, type this:

  • /help <command name>

If you want to teleport a player, type:

  • /TP <player name> <coordinates>

Coordinates are given as an X, Y, and Z value, for example, “100 234 -4123”

You can also teleport one player to another player’s location.

E.g “/tp <player 1> <player 2>” will teleport player 1 to player 2’s location.

You can instantly kill a player by typing

  • /kill <player name>

Useful Items in Minecraft

Here is a list of the items available in Minecraft, to show you what you can give a player using the Give Command.

When typing the command, replace any spaces with an underscore, for example, “fishing_rod”

If you are spawning items that come in a range of materials – for example, diamond shovels, iron shovels, wooden shovels. Simply write the material type before the tool name, with an underscore in between. E.G “diamond_pickaxe” or “iron_sword”.

Tools, Weapons, and Useful Items

  • Arrow
  • Axe
  • Bow
  • Bucket
  • Carrot on a Stick
  • Clock
  • Command Block
  • Compass
  • Crossbow
  • Exploration Map
  • Fire Charge
  • Fishing Rod
  • Flint and Steel
  • Glass Bottle
  • Dragon’s Breath
  • Hoe
  • Lead
  • Map
  • Pickaxe
  • Shears
  • Shield
  • Shovel
  • Sword
  • Saddle
  • Spyglass
  • Totem of Undying

Food and Effect Items

  • Apple
  • Golden Apple
  • Notch Apple
  • Beetroot
  • Beetroot Soup
  • Raw Beef
  • Steak
  • Bread
  • Cake
  • Carrot
  • Golden Carrot
  • Raw Chicken
  • Cooked Chicken
  • Chorus Fruit
  • Clownfish
  • Cookie
  • Egg
  • Raw Cod
  • Cooked Cod
  • Melon Slice
  • Milk
  • Mushroom
  • Mushroom Stew
  • Raw Mutton
  • Cooked Mutto
  • Porkchop
  • Cooked Porkchop
  • Potato
  • Baked Potato
  • Poisonous Potato
  • Potions
  • Pufferfish
  • Pumpkin Pie
  • Raw Rabbit
  • Cooked Rabbit
  • Rabbit Stew
  • Rotten Flesh
  • Salmon
  • Cooked Salmon
  • Sugar
  • Suspicious Stew
  • Sweet Berries

Crafting Materials and Other Items

  • Blaze Powder
  • Blaze Rod
  • Bone
  • Bonemeal
  • Book
  • Book and Quill
  • Enchanted Book
  • Bowl
  • Brick
  • Clay
  • Coal
  • Charcoal
  • Cocoa Beans
  • Copper Ingot
  • Diamond
  • Dyes
  • Emerald
  • Ender Pearl
  • Eye of Ender
  • Feather
  • Spider Eye
  • Fermented Spider Eye
  • Flint
  • Ghast Tear
  • Glistering Melon
  • Glowstone Dust
  • Gold Ingot
  • Gold Nugget
  • Gunpowder
  • Ink Sac
  • Iron Ingot
  • Iron Nugget
  • Lapis Lazuli
  • Leather
  • Magma Cream
  • Music Disc
  • Name Tag
  • Nether Bricks
  • Paper
  • Popped Chorus Fruit
  • Prismarine Crystal
  • Prismarine Shard
  • Rabbit’s Foot
  • Rabbit Hide
  • Redstone
  • Plant Seeds
  • Beetroot Seeds
  • Nether Wart Seed
  • Pumpkin Seeds
  • Wheat Seeds
  • Slimeball
  • Snowball
  • Spawn Eggus)
  • Stick
  • String
  • Wheat
  • Netherite

Closing Thoughts

Now you’ve learned how to use the Give Command to give a player any item in the game. This is one of the best commands in Minecraft and can be used in a lot of cool and creative ways.

Unlike most other commands in Minecraft, the Give command can be relatively complex, so we recommend using a Give Command Generator as outlined above!

FAQs About the Minecraft Give Command

What is the Give Command in Minecraft?

Here is the Give Command in Minecraft. Note, that there is a slight variation between the Java and Bedrock versions of the command:

Java Edition

  • /give <target> <item> [<count>]

Bedrock Edition

  • /give <player> <itemName> [amount] [data] [components]

You can find out the full details of how this command works in the guide above.

How do you Give Yourself Items in Minecraft?

There are a few ways to give yourself items in Minecraft. The easiest is to go into creative mode, and then put the items into your survival inventory.

You can enter creative mode (if you have cheats activated) from a survival or adventure mode world using this command:

  • /gamemode c

Then you can re-enter survival mode using this command:

  • /gamemode s

The alternative method for giving yourself items is by using the Give Command. This is outlined fully in the article above.

What is the @P Command in Minecraft?

The @P command in Minecraft is a type of player targeting. In certain commands, you will need to provide a targeted player, for example – who to give items to, or who to teleport.

The @P target will target the nearest player.