Choose a command Available editors: 23 / 23

Choose a command or select its information icon to see how it works.

Players and items

World and building

Display and game systems

/give

Editor available

What does it do?

Want diamonds, a sword, armor, or a gift for a friend? This command gives a selected item directly to a player's inventory. You can choose the amount and, in supported versions, customize item properties.

When is it useful?

Great for rewards, equipment kits, adventure maps, or getting an item quickly.

Example

/give @p minecraft:diamond 5

What will happen?

The nearest player receives five diamonds.

Good to know

The inventory needs enough space. Custom item properties work differently between Minecraft versions.

Minecraft Java · 1.16+

/give

Build custom Minecraft Java items, enchanted gear, potions and player heads.

Total visits 54My visits 0

Item settings

@s targets you in chat. In the console, use a player name or @a for all players.

Name and lore
Enchantments

Pick an enchantment and level. Max gear adds compatible enchantments at normal maximum levels and skips curses and conflicts.

Durability, appearance and data

Generated command

/give @s minecraft:diamond_sword 1

Inventory preview

Examples
How to give an item to yourself or a friend

Choose your world version, item and quantity. In chat, @s gives it to you and a username targets a specific player. Command permissions are required.

How to make an enchanted sword

Choose a sword and add enchantments. Max gear picks a set, and the name, enchantments and command update on the right.

How to make a multi-effect potion

Select a potion, then add each effect with its own level and duration. Check the preview list before copying.

FAQ Frequently asked questions 30 questions
Essential questions 6
How do I give items to myself?

Use /give @s minecraft:diamond 5 in game chat. @s refers to the command executor, and 5 is the item amount.

How do I give an item to another player?

Replace @s with a player name, such as /give Steve minecraft:stone 64. The target player must be available to the command.

Can I preview the item before giving it?

The panel shows the item icon, quantity, name, lore, enchantments and effects as you edit.

What exactly does /give do?

It gives a specified item to one or more targeted players. It does not create a recipe or modify how the item is normally obtained.

How do I make a potion with two effects?

Select a potion, configure the first effect, then click Add or update. Repeat for the second. Both effects are included in one command.

Can I give blocks as items?

Yes, when the block has an item form. For example, /give @s minecraft:stone 32 gives 32 stone blocks to your inventory.

Syntax and arguments 4
Can I make an ordinary item edible?

Starting in Java 1.21.2, turn on the edible item option. Added effects apply when the item is consumed.

What happens when I omit the count?

The default amount is one. For example, /give @s minecraft:torch gives one torch when the other command conditions are satisfied.

Where do I put the item count?

The count comes after the item identifier and its components. For example, /give @s minecraft:bread 10 gives ten bread items.

Why can I not give an unlimited amount?

The command has limits based on the item stack size. In Java Edition, a single /give operation cannot exceed the limit of one hundred stacks.

Practical examples 5
Does @s work in the server console?

The dedicated server console is not a player entity. Use a player name or another suitable selector and omit the leading slash.

How do I add my own item lore?

Enter text in Name and lore. Each line becomes a separate line in the inventory tooltip.

How do I give myself a diamond pickaxe?

Use /give @s minecraft:diamond_pickaxe 1. It gives a standard diamond pickaxe without additional custom components.

How do I give multiple torches?

The command /give @s minecraft:torch 32 gives thirty-two torches. Check available inventory space before using it.

How do I give armor?

For example, /give @s minecraft:diamond_chestplate 1 gives a diamond chestplate. The item goes into inventory and is not automatically equipped.

Advanced usage 4
Can I give an enchanted item?

Yes. Supported Java versions use item components for relevant properties. The precise format depends on the version, so verify the generated command.

Why is my enchanted item command too long for chat?

Use a command block or a .mcfunction for long commands. Select the execution context to omit the leading slash.

Can I create an item with a custom name?

Yes, using the custom-name component supported by the target version. The command must use the corresponding Java Edition text component format.

Can I change the maximum stack size?

Supported Java versions provide the max_stack_size component. It modifies the item's stack limit, but valid value limits still apply.

Troubleshooting 5
What happens when inventory is full?

The game attempts to give the items. Excess items may be dropped near the player when there is insufficient inventory space.

What does Max gear do?

It selects compatible enchantments at their normal maximum levels, skipping curses and conflicting combinations.

Why does a count of zero fail?

In Java Edition, /give requires a positive integer item count. Zero or negative values do not form a valid give amount.

Can I use advanced item components?

Open Durability, appearance and data and enter additional SNBT properties. The hint under the field shows the format for your version.

Why is the item name rejected?

Use a registered identifier rather than a localized display name. For example, minecraft:diamond_sword is the identifier of a diamond sword.

Minecraft versions 3
Why do old NBT examples fail?

Since Java Edition 1.20.5, item data uses item components. Older item NBT syntax cannot be applied unchanged to newer versions.

What changed after Java 1.20.5?

Item NBT syntax was replaced by item components. Older commands often require conversion rather than a simple change of brackets.

Can I paste a Java command into Bedrock?

Not necessarily. Bedrock Edition has its own arguments and component formats. Check commands against the specific game edition.

Permissions and safety 3
How do I get a head with a specific skin?

Click Player head and enter the owner’s username. Minecraft loads that skin; the preview shows a generic head icon.

Is mass item distribution always safe?

Giving many items can fill inventories, create dropped entities, and cause load. Test the command on a single player first.

How do I safely distribute valuable items?

Check the target player, count, and item properties before execution. Maintaining an administrative action log is useful when distributing valuable items.

Minecraft Wiki reference

Reviews for this page

No published reviews yet.

All WopBlockStudio reviews

Rate this tool

Did this tool work for you? Tell us what went well or what could improve.

Sign in to leave a review
Rating from 1 to 5