/item
公開 2026年9月1日・更新 2026年11月8日
- 書き方の数
- 38
- 必要な権限
- OP レベル 2(「チートの許可」がオンなら使える)
広告
どんなコマンド?
プレイヤーやMob、チェストなどのインベントリのスロットに、直接アイテムを入れたり、別の場所からコピーしたりするコマンドです。頭や手など、決まった場所に置けるのが特徴です。
使い方・ポイント
/item replace entity @s armor.head with minecraft:glass自分の頭にガラスをかぶせます。/item replace entity @s weapon.offhand with minecraft:torch左手(オフハンド)に松明を持たせます。/item replace block ~ ~-1 ~ container.0 with minecraft:diamond 5足元のチェストの最初のスロットにダイヤモンドを5個入れます。/item replace entity @n[type=minecraft:zombie] weapon.mainhand with minecraft:diamond_swordいちばん近いゾンビにダイヤモンドの剣を持たせます。/item replace entity @s weapon.mainhand from block ~ ~-1 ~ container.0足元のチェストの最初のアイテムを、自分の手にコピーします。
書き方
/item fill block <target> <slots> from block <source> <sourceSlots>/item fill block <target> <slots> from block <source> <sourceSlots> <modifier>/item fill block <target> <slots> from entity <source> <sourceSlots>/item fill block <target> <slots> from entity <source> <sourceSlots> <modifier>/item fill block <target> <slots> with <item>/item fill block <target> <slots> with <item> <count>/item fill entity <target> <slots> from block <source> <sourceSlots>/item fill entity <target> <slots> from block <source> <sourceSlots> <modifier>/item fill entity <target> <slots> from entity <source> <sourceSlots>/item fill entity <target> <slots> from entity <source> <sourceSlots> <modifier>/item fill entity <target> <slots> with <item>/item fill entity <target> <slots> with <item> <count>/item modify block <target> <slots> <modifier>/item modify entity <target> <slots> <modifier>/item override block <target> <slots> from block <source> <sourceSlots>/item override block <target> <slots> from block <source> <sourceSlots> <modifier>/item override block <target> <slots> from entity <source> <sourceSlots>/item override block <target> <slots> from entity <source> <sourceSlots> <modifier>/item override block <target> <slots> with <item>/item override block <target> <slots> with <item> <count>/item override entity <target> <slots> from block <source> <sourceSlots>/item override entity <target> <slots> from block <source> <sourceSlots> <modifier>/item override entity <target> <slots> from entity <source> <sourceSlots>/item override entity <target> <slots> from entity <source> <sourceSlots> <modifier>/item override entity <target> <slots> with <item>/item override entity <target> <slots> with <item> <count>/item replace block <target> <slots> from block <source> <sourceSlots>/item replace block <target> <slots> from block <source> <sourceSlots> <modifier>/item replace block <target> <slots> from entity <source> <sourceSlots>/item replace block <target> <slots> from entity <source> <sourceSlots> <modifier>/item replace block <target> <slots> with <item>/item replace block <target> <slots> with <item> <count>/item replace entity <target> <slots> from block <source> <sourceSlots>/item replace entity <target> <slots> from block <source> <sourceSlots> <modifier>/item replace entity <target> <slots> from entity <source> <sourceSlots>/item replace entity <target> <slots> from entity <source> <sourceSlots> <modifier>/item replace entity <target> <slots> with <item>/item replace entity <target> <slots> with <item> <count>< > の中に書くもの
| 名前 | 書くもの |
|---|---|
<target> | 座標(x y z) |
<source> | 座標(x y z) |
<item> | アイテム |
<count> | 整数 |
よくある質問
/give との違いは何ですか?
/give は空いている場所に入れます。/item はスロットを決めて置き、元の物は上書きされます。
出典
- ゲームのデータ: Minecraft Java Edition 26.3 のコマンドの一覧(書き方・権限)
広告

