Skip to main content
MC COMMANDS logoMC COMMANDS
Command Reference

Minecraft /give Command

itemsJavaBedrock

Gives an item or full stack directly to one or more players, with optional counts, custom components (Java 1.20.5+), and block interaction permissions (Bedrock).

Version Compatibility

Java Edition:1.21.4 (1.13+)
Bedrock Edition:1.21.60

Command Syntax

Java Edition/give <targets> <item>[<components>] [<count>]
Bedrock Edition/give <player> <itemName> [amount] [data] [components]

Arguments Explained

Practical Examples

beginnerBoth
/give @p minecraft:diamond 64

Gives the nearest player a full stack (64) of diamonds.

Standard command for rewarding players or stocking inventories.

intermediateJava
/give @s minecraft:netherite_sword[enchantments={levels:{"minecraft:sharpness":5,"minecraft:unbreaking":3}}]

Java 1.20.5+: Gives yourself a Sharpness V, Unbreaking III Netherite Sword using modern component brackets.

Square bracket syntax [component=val] replaced legacy curly brace NBT in Java 1.20.5.

intermediateBedrock
/give @p iron_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["stone","cobblestone"]}}

Bedrock Edition: Gives an iron pickaxe that can only break stone and cobblestone in Adventure mode.

Crucial for Bedrock adventure maps with controlled puzzle progression.

beginnerBoth
/give @a minecraft:cooked_beef 32

Gives 32 cooked beef to all connected players simultaneously.

Perfect for starting food kits or UHC events.

advancedJava
/give @p minecraft:potion[potion_contents={custom_effects:[{id:"minecraft:speed",duration:6000,amplifier:1}]}]

Java 1.20.5+: Gives a custom Speed II potion lasting 5 minutes.

Demonstrates deep component nesting for custom consumables.

Advertisement

Common Mistakes

Mistake:

Using old curly brace NBT syntax like {Enchantments:[{id:"sharpness",lvl:5}]} on Java 1.20.5+

Fix:

Use modern component brackets: [enchantments={levels:{"minecraft:sharpness":5}}]

Mistake:

Using @s inside a standalone command block

Fix:

Command blocks cannot target themselves as a player. Use @p or /execute as @p run give @s ...

Mistake:

Expecting Bedrock Edition to accept enchantment data in /give

Fix:

Bedrock does not support enchantment parameters in /give. Give the item first, then run /enchant @p sharpness 5.

Command Block Usage & Automation

When used in Command Blocks, avoid using @s because the command block itself is the executor and @s evaluates to nothing. Always target players with @p (nearest player), @a (all players), or filtered selectors like @a[distance=..5]. Use Impulse command blocks connected to pressure plates for starter kits, or Chain Conditional blocks following a scoreboard balance test to dispense shop items.

Automation Tip: Command blocks require Operator permissions (permission level 2+) and cheats enabled. In Java Edition, command blocks can execute commands up to 32,767 characters long compared to the 256-character player chat limit.

Useful Tips

  • Java 1.20.5+ allows custom names and lore directly: diamond_sword[custom_name='{"text":"Excalibur","color":"gold"}']

  • In Java Edition, you can give yourself custom player heads: player_head[profile={name:"Notch"}]

  • For adventure maps, combine can_place_on and can_destroy to build lock-and-key exploration mechanics.

Important Notes

In Java 1.20.5 and newer, item components inside square brackets `[component=value]` replaced old NBT curly braces `{Tag:value}`. Bedrock Edition does not support custom enchantments or potion tags inside /give; enchantments on Bedrock must be added with /enchant or an anvil.

Frequently Asked Questions

Ready to build your command?

Use our interactive generator to create error-free /give commands with a visual interface.

Open Command Generator
Advertisement