CommandSeed

これは 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 にあたるコマンドです。

えらぶだけで つくる