minecraft:rideable for you with a switch.Get GodCraftOverview
minecraft:rideable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets other entities ride this one and sets up the seats. Use it for mounts, vehicles or mobs that carry passengers.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
controlling_seat | Integer | "0" | Which seat belongs to the driver; the first seat is 0. |
crouching_skip_interact | Boolean | "true" | If true, sneaking players can't interact with it, so they can do other things instead. |
dismount_mode | Enumerator | "default" | Where riders end up when they get off: default puts them on safe ground nearby, on_top_center puts them on top of the entity. |
family_types | List | none | Family names of entities that are allowed to ride. |
interact_text | String | none | Button text shown to touch-screen players when they can mount. |
on_rider_enter_event | String | none | Event to run on this entity when someone gets on. |
on_rider_exit_event | String | none | Event to run on this entity when someone gets off. |
passenger_max_width | Decimal | "0.00" | Widest a rider can be; set it to 0 to allow any size. |
priority | Integer | "N/A" | Old field that is no longer used. |
pull_in_entities | Boolean | "false" | If true, nearby entities of the allowed families are pulled into free seats, like a boat grabbing mobs. |
rider_can_interact | Boolean | "false" | If true, the rider can target and interact with this entity by looking at it. |
seat_count | Integer | "1" | How many riders fit at once. |
seats | List | none | Seat positions and settings for each rider. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:rideable": {
"controlling_seat": "0",
"crouching_skip_interact": "true",
"dismount_mode": "default",
"family_types": {},
"interact_text": "",
"on_rider_enter_event": "",
"on_rider_exit_event": "",
"passenger_max_width": "0.00"
}
}