ホーム 格闘技 [Minecraft] How to use the give command and tips for its use (Minecraft Bedrock/Java Edition)

[Minecraft] How to use the give command and tips for its use (Minecraft Bedrock/Java Edition)

真鍋 千夏 真鍋 千夏 • 更新: • 公開: • 読了約 27 分
目次

When playing Minecraft with elementary school children, there are often situations where they ask, "Isn't there an easier way to get this item?"

That is when you can use the /give command.

The give command is a command to "give an item to someone."
By typing just one line in the chat, you can instantly obtain diamonds, netherite, or items that are usually hard to get.

If you think, "Commands seem difficult...", please rest assured.
In this article, I will carefully explain everything from the basic usage to advanced techniques used in the international Minecraft community.

I have introduced it in a way that is easy to understand for both game beginners and others, using simple methods that I use when playing with elementary school children.

Updated: 2026/03/21
Compatible with Switch, PS4, and Win11 Bedrock editions
This syntax is valid as of 2026.03.21. Please copy and use it.

■ Preparation before using the give command

n851eb2e944b0

To use the give command, you first need to enable cheats.

Open the world settings screen and turn "Activate Cheats" to ON (enabled).

*If you want to use cheats in an existing world, you can edit the world settings and turn "Activate Cheats" to ON.

In a world where cheats are turned on, you will be able to use commands even in Survival mode.

■ Basic syntax

Open the chat screen and enter the following.

On the Switch, press the "Right D-pad button," and on PC, press "T" or "/" to open the chat.

/give [プレイヤー名] [アイテム名] [個数]
Example of usage
/give @s diamond 64

This is a command to "give 64 diamonds to yourself (@s)."

When you enter the command and press Enter, the diamonds will be added to your inventory immediately.

■ How to specify players (Target Selectors)

The target selector is what specifies "who to give it to" within the command.

The following four types are commonly used with the give command.

@s (Self)
Gives an item to the player who executed the command. This is most commonly used when you want to equip yourself.

@p (Nearest player)
Gives an item to the player closest to the location where the command was executed. This is often used in combination with command blocks.

@a (All players)
Gives an item to all players in the world. This is useful when you want to distribute items to everyone while playing with friends.

@r (Random player)
Selects one random player from those present and gives them the item. This is sometimes used for game or event effects.

Specify player name directly
Instead of using '@s', you can also enter a specific player's name.

/give Steve diamond 10

■ Examples of commonly used item commands

Item names used in the give command are specified by their English identifiers (item IDs).

When you type, suggestions will appear, so you can also select from those.

Here are some examples of commonly used item commands.

Full diamond gear setTo obtain these, enter the following commands respectively.

/give @s diamond_sword
/give @s diamond_pickaxe
/give @s diamond_axe
/give @s diamond_shovel
/give @s diamond_helmet
/give @s diamond_chestplate
/give @s diamond_leggings
/give @s diamond_boots

FoodTo obtain these in bulk, use the following.

/give @s cooked_beef 64

Netherite materials(the highest rank equipment material) can be obtained with the following command.

/give @s netherite_ingot 4

Command block(a special block that does not appear in the standard creative inventory) can also be obtained using the give command.

/give @s command_block

■ Differences between Bedrock and Java Editions

The syntax for the give command differs slightly between Bedrock Edition and Java Edition.

For basic item distribution, the same syntax works for both.

The difference arises when adding options (additional settings) to items. As explained in detail in the next section, the syntax for options is different between Bedrock and Java editions.

■ Regarding the maximum quantity limit

The maximum quantity that can be given with the give command differs between Bedrock and Java editions.

For Bedrock Edition, you can specify up to 32,767 items.
They will be added to your inventory in stacks of 64.

For Java Edition, you can specify even larger numbers, but in most practical situations, 64 (one stack) is sufficient.

■ [Application] Useful commands using options (Bedrock Edition)

From here on, I will introduce advanced techniques for the give command that can be used in Bedrock Edition.

These are features widely known in the international Minecraft community, but many of them are not often introduced in Japan. Please give them a try.

1. Locking items to slots (item_lock)

This is a technique often used in adventure maps and mini-games. You can prevent specific items from being moved within the inventory or from being dropped.

Prevent moving within the inventory(Cannot be dropped or used for crafting)

/give @s diamond_sword 1 0 "item_lock":"mode":"lock_in_inventory"

Lock to a specific slot(Cannot be moved or dropped)

/give @s diamond_sword 1 0 "item_lock":"mode":"lock_in_slot"

This is useful when distributing a "starter kit" in multiplayer survival games. It prevents players from accidentally dropping items.

2. Keeping items after death (keep_on_death)

Normally, when you die in survival mode, you drop your items on the spot. You can set specific items to be kept even after death.

/give @s diamond_pickaxe 1 0 "minecraft:keep_on_death":

This is effective in multiplayer when you want to ensure that a specific item is never lost. For example, you can distribute a special map to team members and ensure they don't lose it even if they die.

The difference from the "keepInventory" game rule, which keeps all items, is that you can specify only specific items.

3. Allowing only specific blocks to be broken or placed in Adventure Mode

In adventure maps (worlds that are like games you've created yourself), if players can freely break or place blocks, the game can break. Therefore, you can set restrictions such as "this item can only mine these blocks."

A shovel that can only mine sand and dirt(Used when specifying specific mineable locations in adventure maps)

/give @s stone_shovel 1 0 "minecraft:can_destroy":"blocks":["dirt","sand"]

Stone blocks that can only be placed on top of specific blocks

/give @s stone 1 0 "minecraft:can_place_on":"blocks":["grass","dirt","cobblestone"]
4. Combining multiple options

Options can also be used in combination. For example, if you want to create a "bow that is locked in the slot and will not drop even if you die," write it as follows.

/give @s bow 1 0 "minecraft:item_lock":"mode":"lock_in_slot","minecraft:keep_on_death":

■ [Diagram] Structure of the give command

I have organized what each part of the give command means.

▼ Diagram content (text information in the image): Structure diagram of the give command

Image of the entire command:

 /give @s diamond 64 "item_lock":"mode":"lock_in_inventory"

Meaning of each part:

  • /give = Command type (give an item)

  • @s = Who to give it to (target selector). @a (everyone), @p (nearest player), etc., can also be used

  • diamond = Item ID (English name)

  • 64 = Quantity (up to 32,767 in Bedrock Edition)

  • "item_lock":"mode":"lock_in_inventory" = Option (Bedrock Edition only). Can be omitted

■ Ways to use the give command effectively

Combine with command blocks

If you want to avoid typing it into the chat every time, there is a way to use command blocks.

You can register a give command in a command block to create an "item dispenser" that lets you get items just by pressing a button.

In particular, if you use @p (nearest player), items will be automatically given to the player standing in front of the command block.

Please see this article for how to use command blocks.

■ Common mistakes and their solutions

The item ID is incorrect

You must enter item names using their English identifiers (IDs). Typing "diamond sword" instead of "diamond_sword" will not be recognized.

It is recommended to use the suggestions (candidates) that appear while you are typing.

Cheats are not enabled

Commands cannot be used if cheats are set to "Off." Please turn "Activate Cheats" to On.

The option syntax is incorrect

Options for the Bedrock Edition must be written in JSON format.
If even a single bracket or quotation mark is missing, it will result in an error.
Using copy and paste is safer.

■ Ways to expand your Minecraft fun with the give command

The give command is not just a "cheat feature," but a tool to expand how you play Minecraft.

・When playing with children, you can skip the time spent gathering materials and focus on building. ・You can distribute the same starter kit to everyone in multiplayer. ・You can incorporate game rules into items when creating adventure maps.

In particular, options like item_lock and keep_on_death are techniques frequently used by overseas adventure map creators. While they are gradually being used in Japanese Minecraft videos, I get the impression they are not yet widely known.

Knowing these features allows you to enjoy creating your own unique game modes with your children.

■ Summary

Here is a summary of the key points of the give command introduced this time.

Basic usage: /give @s [item ID] [quantity] allows you to give items to yourself.

Using target selectors: There are options like @s (yourself), @a (everyone), @p (nearest player), etc.

Advanced Bedrock options: item_lock allows you to lock items, and keep_on_death allows you to keep items even after dying.

Combining with command blocks: You can create a mechanism where items are obtained just by pressing a button.

Commands that you might have thought were "difficult" are surprisingly easy once you try them. Please give it a try!

There might be changes after writing this article, but I hope this information is helpful in some way.

If you like this, clicking the "Like" button would be very encouraging!

I also publish other information related to Minecraft.
I would be very happy if you could also click the "Like" button.

<Related Articles>
[Programming in Minecraft] How to use the TP command (Minecraft Bedrock/Java Edition)

[Minecraft] Explaining how to use the setblock command in Bedrock Edition (Switch compatible) Magma under your feet!

[Programming in Minecraft] Explaining how to use the tag command and tips for its application

[Minecraft Bedrock Edition] How to make a Splatoon-style competitive mini-game

I am sharing my track record of streaming Minecraft videos on YouTube.
This is the data up to 1,000 channel subscribers!


同じカテゴリの記事

真鍋 千夏
デジタルマーケター 真鍋 千夏
プロフィールを見る →

美容と暮らしの話題を担当。メーカーの公式発表、商品成分の公表資料、専門家の監修記事をもとに事実を整理します。

おすすめの関連記事