跳转至

Rideable

文档版本:1.21.0.24

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_seatinteger
The seat that designates the driver of the entity.
crouching_skip_interactboolean
If true, this entity can't be interacted with if the entity interacting with it is crouching.
family_typesarray
List of entities that can ride this entity.
family_types
<any array element>string
interact_textstring
The text to display when the player can interact with the entity when playing with Touch-screen controls.
passenger_max_widthnumber
The max width a mob can be to be a passenger. A value of 0 ignores this parameter.
pull_in_entitiesboolean
If true, this entity will pull in entities that are in the correct family_types into any available seats.
rider_can_interactboolean
If true, this entity will be picked when looked at by the rider.
seat_countinteger
The number of entities that can ride this entity at the same time.
seatsobject
The list of positions and number of riders for each position for entities riding this entity.
seats
lock_rider_rotationnumber
Angle in degrees that a rider is allowed to rotate while riding this entity. Omit this property for no limit
max_rider_countinteger
Defines the maximum number of riders that can be riding this entity for this seat to be valid.
min_rider_countinteger
Defines the minimum number of riders that need to be riding this entity before this seat can be used.
positionvector_of_3_items
Position of this seat relative to this entity's position.
vector_of_3_items:
array
{
  number "0..0" : opt
  number "1..1" : opt
  number "2..2" : opt
}
0..0number
The X component.
1..1number
The Y component.
2..2number
The Z component.
rotate_rider_by0
Offset to rotate riders by.
0:
string
0:
number
seatsarray
The list of positions and number of riders for each position for entities riding this entity.
seats
<any array element>object
<any array element>