1. Wiki
  2. /物品
  3. /minecraft:entity_placer

minecraft:entity_placer

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:entity_placer。Get GodCraft

概览

minecraft:entity_placer 是一个物品组件:写在自定义物品的 components 对象中。 让物品在使用时生成一个实体,就像刷怪蛋或船物品那样。

字段

字段类型默认值说明
entityEntity Reference""使用物品时出现的实体。
use_onBlock Descriptor[]无可以对哪些方块使用该物品。留空表示任何方块都可以。
dispense_onBlock Descriptor[]无发射器可以在哪些方块上生成该实体。留空表示任何方块都可以。

示例

写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):

BP/items/<name>.json
{
  "minecraft:entity_placer": {
    "entity": "",
    "use_on": [],
    "dispense_on": []
  }
}

物品: 行为包

We use cookies to improve your experience and analyse site traffic. Learn more