概览
minecraft:sittable 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让实体可以坐下和站起,就像驯服的狼或猫,并在状态变化时运行事件。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
sit_event | String | 无 | 实体坐下时运行的事件。 |
stand_event | String | 无 | 实体站起时运行的事件。 |
示例
写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):
BP/entities/<name>.json
{
"minecraft:sittable": {
"sit_event": "",
"stand_event": ""
}
}