これは Java(ジャバ)ばんの ページです。 とうごうばん(Bedrock)は こちら →
← ぜんぶの コマンドに もどるスロットのアイテムを入れかえる/item
エンティティやブロックの指定スロットのアイテムを置き換え・複製します。
だれが つかえるか
レベル 2 … チートが ON の ワールドか、サーバーの OP(gamemasters)だけ つかえます。
どこで つかえるか
ひとりで あそぶ ワールドでも、みんなで あそぶ サーバーでも つかえます。
かきかた
ここは かきかたを みる ところです。えらんで つくることは できません。 かんたんモード と じょうけんを かさねる では、えらぶだけで つくれます。
ぜんぶで 14 とおり あります。
- /item modify block <pos> <slot> <modifier>
- /item modify entity <targets> <slot> <modifier>
- /item replace block <pos> <slot> from block <source> <sourceSlot>
- /item replace block <pos> <slot> from block <source> <sourceSlot> <modifier>
- /item replace block <pos> <slot> from entity <source> <sourceSlot>
- /item replace block <pos> <slot> from entity <source> <sourceSlot> <modifier>
- /item replace block <pos> <slot> with <item>
- /item replace block <pos> <slot> with <item> <count>
- /item replace entity <targets> <slot> from block <source> <sourceSlot>
- /item replace entity <targets> <slot> from block <source> <sourceSlot> <modifier>
- /item replace entity <targets> <slot> from entity <source> <sourceSlot>
- /item replace entity <targets> <slot> from entity <source> <sourceSlot> <modifier>
- /item replace entity <targets> <slot> with <item>
- /item replace entity <targets> <slot> with <item> <count>
くわしい せつめい
replace でそのスロットのアイテムを入れかえ、modify でルートテーブルの変更を当てます。相手はエンティティかブロック(チェストなど)のどちらかで、スロットは weapon.mainhand や armor.head、container.0 のような名前で指定します。with のうしろにアイテムを書く形と、from で別のスロットから写す形があります。Bedrock の /replaceitem にあたるコマンドです。