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

minecraft:rideable

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

Overview

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

FieldTypeDefaultDescription
controlling_seatInteger"0"Which seat belongs to the driver; the first seat is 0.
crouching_skip_interactBoolean"true"If true, sneaking players can't interact with it, so they can do other things instead.
dismount_modeEnumerator"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_typesListnoneFamily names of entities that are allowed to ride.
interact_textStringnoneButton text shown to touch-screen players when they can mount.
on_rider_enter_eventStringnoneEvent to run on this entity when someone gets on.
on_rider_exit_eventStringnoneEvent to run on this entity when someone gets off.
passenger_max_widthDecimal"0.00"Widest a rider can be; set it to 0 to allow any size.
priorityInteger"N/A"Old field that is no longer used.
pull_in_entitiesBoolean"false"If true, nearby entities of the allowed families are pulled into free seats, like a boat grabbing mobs.
rider_can_interactBoolean"false"If true, the rider can target and interact with this entity by looking at it.
seat_countInteger"1"How many riders fit at once.
seatsListnoneSeat 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"
  }
}

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