1. Wiki
  2. /实体
  3. /minecraft:behavior.send_event

minecraft:behavior.send_event

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

概览

minecraft:behavior.send_event 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让生物施放法术,依次在另一个生物上触发事件。唤魔者用它把蓝色的羊变成红色。

字段

字段类型默认值说明
cast_durationDecimal"Total delay of the steps"整个施法过程持续多长时间(秒)。
look_at_targetBoolean"true"设为 true 时,生物会面向接收事件的实体。
sequenceList无要发送的事件列表,每个事件都有自己的延迟和声音。

示例

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

BP/entities/<name>.json
{
  "minecraft:behavior.send_event": {
    "cast_duration": "Total delay of the steps",
    "look_at_target": "true",
    "sequence": {}
  }
}

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