minecraft:sittable for you with a switch.Get GodCraftOverview
minecraft:sittable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets the entity sit and stand, like a tamed wolf or cat, and runs events when it changes.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
sit_event | String | none | Event to run when the entity sits down. |
stand_event | String | none | Event to run when the entity stands up. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:sittable": {
"sit_event": "",
"stand_event": ""
}
}