Rideable¶
文档版本:1.21.50.25
Determines whether this entity can be ridden. Allows specifying the different seat positions and quantity.
架构¶
rideable:
{
integer "controlling_seat" : opt
boolean "crouching_skip_interact" : opt
array "family_types" : opt
{
string "<any array element>" : opt
}
string "interact_text" : opt
number "passenger_max_width" : opt
boolean "pull_in_entities" : opt
boolean "rider_can_interact" : opt
integer "seat_count" : opt
object "seats" : opt
{
number "lock_rider_rotation" : opt
integer "max_rider_count" : opt
integer "min_rider_count" : opt
vector_of_3_items "position"
0 "rotate_rider_by"
}
array "seats" : opt
{
object "<any array element>" : opt
{
}
}
}
controlling_seat
:integer- The seat that designates the driver of the entity.
crouching_skip_interact
:boolean- If true, this entity can't be interacted with if the entity interacting with it is crouching.
family_types
:array- List of entities that can ride this entity.
family_types
<any array element>
:string
interact_text
:string- The text to display when the player can interact with the entity when playing with Touch-screen controls.
passenger_max_width
:number- The max width a mob can be to be a passenger. A value of 0 ignores this parameter.
pull_in_entities
:boolean- If true, this entity will pull in entities that are in the correct family_types into any available seats.
rider_can_interact
:boolean- If true, this entity will be picked when looked at by the rider.
seat_count
:integer- The number of entities that can ride this entity at the same time.
seats
:object- The list of positions and number of riders for each position for entities riding this entity.
seats
lock_rider_rotation
:number- Angle in degrees that a rider is allowed to rotate while riding this entity. Omit this property for no limit
max_rider_count
:integer- Defines the maximum number of riders that can be riding this entity for this seat to be valid.
min_rider_count
:integer- Defines the minimum number of riders that need to be riding this entity before this seat can be used.
position
:vector_of_3_items- Position of this seat relative to this entity's position.
0..0
:number- The X component.
1..1
:number- The Y component.
2..2
:number- The Z component.
rotate_rider_by
:0- Offset to rotate riders by.
seats
:array- The list of positions and number of riders for each position for entities riding this entity.
seats
<any array element>
:object
<any array element>