Private
constructorReadonly
controllingZero-based index of the seat that can used to control this entity.
This property can throw when used.
Readonly
crouchingDetermines whether interactions are not supported if the entity is crouching.
This property can throw when used.
Readonly
entityThe entity that owns this component. The entity will be undefined if it has been removed.
Readonly
interactSet of text that should be displayed when a player is looking to ride on this entity (commonly with touch-screen controls).
This property can throw when used.
Readonly
passengerThe max width a mob can be to be a passenger.
This property can throw when used.
Readonly
pullIf true, this entity will pull in entities that are in the correct family_types into any available seat.
This property can throw when used.
Readonly
riderIf true, this entity will be picked when looked at by the rider.
This property can throw when used.
Readonly
seatNumber of seats for riders defined for this entity.
This property can throw when used.
Readonly
typeIdentifier of the component.
Static
Readonly
componentEntity that will become the rider of this entity.
True if the rider entity was successfully added.
Adds an entity to this entity as a rider.
This function can't be called in read-only mode.
This function can throw errors.
Entity that should be ejected from this entity.
Ejects the specified rider of this entity.
This function can't be called in read-only mode.
This function can throw errors.
When added, this component adds the capability that an entity can be ridden by another entity.
Example
ridePlayerOnBoat.js