Minecraft
Minecraft Give Command
The /give command differs between Java and Bedrock in ways that are easy to miss: different argument lists, different count limits, and a different permission level. A command copied from a Java guide will often be refused on Bedrock for reasons the error does not explain.
The builder below has a separate form for each edition, with the arguments in that edition’s order.
Java Edition 1.20.5 replaced the old NBT tag syntax with item components. Enchantment commands written before that change no longer work, which is why so many older guides fail.
Give Command Builder
Choose your edition, pick an item and a count, and copy the command. Java and Bedrock take their arguments in different orders, so each has its own form.
The Java form takes a target, an item and an optional count.
Namespaced, lower case, underscores for spaces.
Your command
/give @s minecraft:diamond 64Syntax is give <targets> <item> [<count>]. Count must be between 1 and 2,147,483,647, and requires permission level 2.
Common item IDs
Namespaced identifiers for the items people ask for most. Search by name or by ID.
Showing 24 of 24
Diamond
The classic test item.
Materials
Netherite Ingot
The endgame crafting material.
Materials
Emerald
Villager trading currency.
Materials
Iron Ingot
The most-used metal in the game.
Materials
Gold Ingot
Used for piglin bartering.
Materials
Redstone Dust
Circuit material.
Materials
Diamond Sword
Standard high-tier weapon.
Gear
Netherite Pickaxe
The fastest pickaxe in the game.
Gear
Elytra
Gliding wings from an end city.
Gear
Totem of Undying
Prevents one death when held.
Gear
Shield
Blocks melee and projectiles.
Gear
Bow
Standard ranged weapon.
Gear
Enchanted Golden Apple
The strongest healing item.
Food
Golden Apple
The common version.
Food
Cooked Beef
The most efficient ordinary food.
Food
Bread
Cheap, stackable food.
Food
Ender Pearl
Short-range teleport on throw.
Utility
Eye of Ender
Locates and activates the end portal.
Utility
TNT
Explosive block.
Utility
Torch
The basic light source.
Utility
Obsidian
Blast-resistant block for portals.
Utility
Shulker Box
Storage that keeps its contents when broken.
Utility
Command Block
Only obtainable through /give.
Utility
There is no recipe and no creative-menu entry. /give is the only way to get one.
Barrier
An invisible solid block used for map building.
Utility
Also unobtainable except through /give.
The Syntax, Per Edition
Java Edition takes give <targets> <item> [<count>]. The count is optional and defaults to one, must be between 1 and 2,147,483,647, and the command requires permission level 2.
Bedrock Edition takes give <player: target> <itemName: Item> [amount: int] [data: int] [components: json]. It has an extra data argument that Java does not, its amount should be between 1 and 32,767 rather than the much larger Java range, and it needs only permission level 1.
Item identifiers are namespaced and lower case, with underscores where a name has spaces — minecraft:enchanted_golden_apple rather than Enchanted Golden Apple. Java requires the namespace in most contexts; Bedrock accepts the name with or without it.
If the target’s inventory is full, the items drop on the ground at their feet rather than being lost, so a full inventory is not a reason for the command to appear to do nothing.
Enchantments and the 1.20.5 Change
Java Edition 1.20.5 replaced the NBT tag system with item components, and this is the single biggest source of broken /give commands on the internet. Every guide written before that update uses a syntax the game no longer accepts, and there are a great many of them.
The current form puts components in square brackets after the item ID. An enchanted sword is minecraft:diamond_sword[enchantments={sharpness:5}], where the old syntax used a {Enchantments:[...]} tag instead.
If a /give command with enchantments returns a syntax error, the age of the guide you copied it from is the first thing to check. The plain form without components has not changed and still works everywhere.
Items You Can Only Get This Way
A few blocks exist in the game but have no recipe and no creative-menu entry, which makes /give the only route to them. Command blocks are the main one, and barriers — invisible solid blocks used for building adventure maps — are the other.
Both need cheats on and operator permission, which is consistent with what they are for. They are map-building tools rather than survival items.
For everything else, the creative inventory is usually faster than typing a command. /give earns its place when you want an exact count, when you are giving something to another player, or when you are putting the command inside a command block where there is no inventory to click.
Frequently Asked Questions
What is the give command in Minecraft?
/give followed by a target, an item ID and optionally a count — for example /give @s minecraft:diamond 64. Java Edition needs permission level 2 and Bedrock needs level 1.
What is the difference between Java and Bedrock /give?
Bedrock adds a data argument after the amount that Java does not have, caps the amount at 32,767 where Java allows far more, and requires a lower permission level.
Why does my enchanted /give command give a syntax error?
Because Java Edition 1.20.5 replaced NBT tags with item components. Guides written before that update use a syntax the game no longer accepts. The current form is minecraft:diamond_sword[enchantments={sharpness:5}].
How do I get a command block?
/give @s minecraft:command_block. There is no recipe and it does not appear in the creative inventory, so the command is the only way to obtain one.
What happens if my inventory is full?
The items drop on the ground at your feet rather than disappearing, so nothing is lost.