Class: EntityRideableComponent
When added, this component adds the capability that an entity can be ridden by another entity.
Extends
Constructors
new EntityRideableComponent()
private
new EntityRideableComponent():EntityRideableComponent
Returns
Overrides
Properties
controllingSeat
readonly
controllingSeat:number
Remarks
Zero-based index of the seat that can used to control this entity.
Throws
This property can throw when used.
crouchingSkipInteract
readonly
crouchingSkipInteract:boolean
Remarks
Determines whether interactions are not supported if the entity is crouching.
Throws
This property can throw when used.
entity
Beta
readonly
entity:Entity
Remarks
The entity that owns this component. The entity will be undefined if it has been removed.
Inherited from
interactText
readonly
interactText:string
Remarks
Set of text that should be displayed when a player is looking to ride on this entity (commonly with touch-screen controls).
Throws
This property can throw when used.
passengerMaxWidth
readonly
passengerMaxWidth:number
Remarks
The max width a mob can be to be a passenger.
Throws
This property can throw when used.
pullInEntities
readonly
pullInEntities:boolean
Remarks
If true, this entity will pull in entities that are in the correct family_types into any available seat.
Throws
This property can throw when used.
riderCanInteract
readonly
riderCanInteract:boolean
Remarks
If true, this entity will be picked when looked at by the rider.
Throws
This property can throw when used.
seatCount
readonly
seatCount:number
Remarks
Number of seats for riders defined for this entity.
Throws
This property can throw when used.
typeId
readonly
typeId:string
Remarks
Identifier of the component.
Inherited from
componentId
static
readonly
componentId:"minecraft:rideable"
='minecraft:rideable'