2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id" : "blockception.minecraft.behavior.entities.minecraft.rideable" ,
2025-03-03 12:44:05 +05:00
"description" : "Determines whether this entity can be ridden. Allows specifying the different seat positions and amount." ,
2021-10-08 12:59:03 +02:00
"type" : "object" ,
2021-10-08 13:04:13 +02:00
"title" : "Rideable" ,
2021-10-08 12:59:03 +02:00
"additionalProperties" : false ,
"definitions" : {
"seats_spec" : {
"additionalProperties" : false ,
"type" : "object" ,
"properties" : {
"lock_rider_rotation" : {
"type" : "number" ,
"default" : 181 ,
2024-01-06 22:35:00 +01:00
"description" : "Angle in degrees that a rider is allowed to rotate while riding this entity. Omit this property for no limit" ,
"title" : "Lock Rider Rotation"
2021-10-08 12:59:03 +02:00
} ,
"max_rider_count" : {
"type" : "integer" ,
"default" : 0 ,
2024-01-06 22:35:00 +01:00
"description" : "Defines the maximum number of riders that can be riding this entity for this seat to be valid." ,
"title" : "Max Rider Count"
2021-10-08 12:59:03 +02:00
} ,
"min_rider_count" : {
"type" : "integer" ,
"default" : 0 ,
2024-01-06 22:35:00 +01:00
"description" : "Defines the minimum number of riders that need to be riding this entity before this seat can be used." ,
"title" : "Min Rider Count"
2021-10-08 12:59:03 +02:00
} ,
"position" : {
2021-11-05 11:17:08 +01:00
"$ref" : "../../../../general/vectors/number3.json" ,
2021-10-08 12:59:03 +02:00
"default" : [ 0.0 , 0.0 , 0.0 ] ,
2024-01-06 22:35:00 +01:00
"description" : "Position of this seat relative to this entity's position." ,
"title" : "Position"
2021-10-08 12:59:03 +02:00
} ,
2021-10-11 18:10:42 +02:00
"rotate_rider_by" : {
"$ref" : "../../../../molang/number.json" ,
2024-01-06 22:35:00 +01:00
"description" : "Offset to rotate riders by." ,
"title" : "Rotate Rider By"
2021-10-11 18:10:42 +02:00
}
2021-10-08 12:59:03 +02:00
}
}
} ,
"properties" : {
"controlling_seat" : {
"type" : "integer" ,
"default" : 0 ,
2025-03-03 12:44:05 +05:00
"description" : "The seat that designates the driver of the entity. Entities with the \"minecraft:behavior.controlled_by_player\" goal ignore this field and give control to any player in any seat." ,
2021-10-08 12:59:03 +02:00
"title" : "Controlling Seat"
} ,
"crouching_skip_interact" : {
"type" : "boolean" ,
"default" : true ,
2022-07-22 19:41:04 +02:00
"description" : "If true, this entity can't be interacted with if the entity interacting with it is crouching." ,
2021-10-08 12:59:03 +02:00
"title" : "Crouching Skip Interact"
} ,
"family_types" : {
2024-01-06 22:35:00 +01:00
"title" : "Family Types" ,
"description" : "List of entities that can ride this entity." ,
2021-10-08 12:59:03 +02:00
"type" : "array" ,
2021-10-11 18:10:42 +02:00
"items" : {
2024-01-06 22:35:00 +01:00
"type" : "string" ,
"title" : "Family Type"
}
2021-10-08 12:59:03 +02:00
} ,
"interact_text" : {
"type" : "string" ,
"default" : "" ,
2022-07-22 19:41:04 +02:00
"description" : "The text to display when the player can interact with the entity when playing with Touch-screen controls." ,
2021-10-08 12:59:03 +02:00
"title" : "Interact Text"
} ,
2024-01-06 22:35:00 +01:00
"passenger_max_width" : {
"title" : "Passenger Max Width" ,
2025-03-03 12:44:05 +05:00
"description" : "The max width a mob can have to be a rider. A value of 0 ignores this parameter." ,
2024-01-06 22:35:00 +01:00
"type" : "number" ,
"default" : 0.0
} ,
2021-10-08 12:59:03 +02:00
"pull_in_entities" : {
"type" : "boolean" ,
"default" : false ,
2022-07-22 19:41:04 +02:00
"description" : "If true, this entity will pull in entities that are in the correct family_types into any available seats." ,
2021-10-08 12:59:03 +02:00
"title" : "Pull In Entities"
} ,
"rider_can_interact" : {
"type" : "boolean" ,
"default" : false ,
2022-07-22 19:41:04 +02:00
"description" : "If true, this entity will be picked when looked at by the rider." ,
2021-10-08 12:59:03 +02:00
"title" : "Rider Can Interact"
} ,
"seat_count" : {
"type" : "integer" ,
"default" : 1 ,
2022-07-22 19:41:04 +02:00
"description" : "The number of entities that can ride this entity at the same time." ,
2021-10-08 12:59:03 +02:00
"title" : "Seat Count"
} ,
"seats" : {
2022-07-22 19:41:04 +02:00
"description" : "The list of positions and number of riders for each position for entities riding this entity." ,
2021-10-08 12:59:03 +02:00
"title" : "Seats" ,
"oneOf" : [
2021-10-11 18:10:42 +02:00
{
"type" : "object" ,
"$ref" : "#/definitions/seats_spec"
} ,
{
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/seats_spec"
}
}
2021-10-08 12:59:03 +02:00
]
}
2021-10-11 18:10:42 +02:00
} ,
"examples" : [
{
"controlling_seat" : 0 ,
"crouching_skip_interact" : true ,
"family_types" : [ ] ,
"interact_text" : "" ,
"pull_in_entities" : false ,
"rider_can_interact" : false ,
"seat_count" : 1
}
]
2021-10-08 12:59:03 +02:00
}