Minecraft /give Command
指定したアイテムをプレイヤーに与えます(Java版ではカスタムNBTデータを含む)。
バージョン対応
コマンド構文
/give <targets> <item>[<components>] [<count>]/give <player> <itemName> [amount] [data] [components]引数の解説
targets / playerSelector / Player Name必須Target entity receiving the items (e.g., @p nearest, @a all, or an exact gamer tag).
item / itemNameNamespaced Item ID必須The official identifier of the item (e.g., minecraft:diamond_sword in Java, diamond_sword in Bedrock).
count / amountInteger (1-64)Number of items to give. Defaults to 1 if omitted. Can exceed 64 in Java for unstackables.
componentsComponents / JSONJava 1.20.5+ square-bracket components (e.g. [enchantments={levels:{"sharpness":5}}]) or Bedrock adventure JSON (can_place_on / can_destroy).
実用的な使用例
/give @p minecraft:diamond 64Gives the nearest player a full stack (64) of diamonds.
Standard command for rewarding players or stocking inventories.
/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.
/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.
/give @a minecraft:cooked_beef 32Gives 32 cooked beef to all connected players simultaneously.
Perfect for starting food kits or UHC events.
/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.
よくあるミス
ミス:
アイテム名を大文字で入力する
修正方法:
アイテムIDは大文字小文字を区別し、小文字とアンダースコアで入力する必要があります。
ミス:
Bedrock版で64個以上のアイテムを一度に入手しようとする
修正方法:
Bedrock版ではコマンドごとに64個が上限です。複数のコマンドを使用してください。
ミス:
/giveにオペレーター権限が必要なことを忘れる
修正方法:
OP権限があるか、権限が有効なコマンドブロックを使用してください。
Java版と統合版の違い
Java版は角括弧[]内の完全なアイテムコンポーネントをサポートし、カスタムプロパティを設定できます。Bedrock版はコマンド内でのカスタムNBTコンポーネントをサポートしない簡略化されたフォーマットを使用します。
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.
便利なヒント
末尾に数字を追加して複数のアイテムを付与できます: /give @p dirt 64
@sで自分、@pで最も近いプレイヤー、@aで全プレイヤーにアイテムを与えます。
Java版のアイテムコンポーネントを使用して、エンチャメントや属性で武器や防具をカスタマイズできます。
Bedrock版では、ほとんどのアイテムのスタック数は64に制限されています。
コマンドブロックで/giveを使用して、アイテム自動配布システムを作成できます。
重要な注意事項
Java 1.20.5以降では、波括弧{}内のNBT構文は角括弧[]内のアイテムコンポーネントに置き換えられました。
よくある質問
カスタムエンチャメント付きのアイテムをもらえますか?
はい、Java Editionでは[item component]構文を使用してエンチャメントを設定できます。Bedrock版では標準のエンチャメント制限があります。
Bedrock版で/giveが動きません。なぜ?
ワールド設定でオペレーター権限が有効になっているか確認してください。
ゲームに存在しないアイテムをもらえますか?
いいえ、有効なアイテムIDのみ付与できます。IDはゲームに登録されているものと完全に一致する必要があります。