概览
minecraft:raid_trigger 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 尝试在实体所在位置开始一场袭击,就像带着不祥之兆的玩家进入村庄时那样。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
triggered_event | String | 无 | 村庄中开始袭击时运行的事件。 |
示例
写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):
BP/entities/<name>.json
{
"minecraft:raid_trigger": {
"triggered_event": ""
}
}