1. Wiki
  2. /Entities
  3. /minecraft:sittable

minecraft:sittable

Don't want to write this by hand? GodCraft sets minecraft:sittable for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
sit_eventStringnoneEvent to run when the entity sits down.
stand_eventStringnoneEvent 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": ""
  }
}

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