Skip to content

scriptevent: spawnEntity

Nano191225 edited this page May 3, 2023 · 1 revision

エンティティをスポーンさせます。

プロパティ

  • id - エンティティのID (string, 必須)
  • name - エンティティの名前 (string)
  • set_on_fire - エンティティを炎上させる秒数 (number)
  • x - X座標 (number)
  • y - Y座標 (number)
  • z - Z座標 (number)

使用例

12 64 211と名前のついたminecraft:cowをスポーンさせる。

/scriptevent Capi:spawnEntity {id=cow, name=牛, x=12, y=64, z=211}

2秒間炎上する豚をスポーンさせる。

/scriptevent Capi:spawnEntity {id=pig, set_on_fire=2}
Clone this wiki locally