1. Wiki
  2. /实体
  3. /minecraft:sittable

minecraft:sittable

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

概览

minecraft:sittable 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让实体可以坐下和站起,就像驯服的狼或猫,并在状态变化时运行事件。

字段

字段类型默认值说明
sit_eventString无实体坐下时运行的事件。
stand_eventString无实体站起时运行的事件。

示例

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

BP/entities/<name>.json
{
  "minecraft:sittable": {
    "sit_event": "",
    "stand_event": ""
  }
}

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