//Display name of the vehicle
name Articulated Bus
//Unique Identifier
id articulated_bus

model articulated_bus.obj
//Model group origins: group_name, x, y, z
origin front_door -1.4375 0.625 3.625
origin middle_door_right -1.4375 0.625 0.625
origin middle_door_left -1.4375 0.625 -1.625

//Default animations. <anim_type> <anim_id>
defaultAnimation bus_arrive tsdefaultpack:articulated_bus_open_doors
defaultAnimation bus_depart tsdefaultpack:articulated_bus_close_doors


//Possible textures of the vehicle
textures articulated_bus.png articulated_bus_blue.png articulated_bus_green.png articulated_bus_red_white.png


//Sound. <sound_type> -> <pack>:(optional)<sound_name> <pack>:(optional)<sound_properties> <x,y,z>
sound brake_release air_brake_release.ogg brake_release 0,0,-2.6


//Wheels. Wheel type -> Position coordinates (multiples of 0.0625 (one pixel)) -> whether or not it can rotate
wheel wheel_large 1.3125001584537839 0.375 1.8124998852575944 true
wheel wheel_large -1.3124998415462064 0.375 1.8125001147423918 true
wheel wheel_large -1.3125002513404875 0.375 -2.8749998852575906 
wheel wheel_large 1.3124997486595027 0.375 -2.875000114742388 

//Seats. Position coordinates -> whether or not it is a driver seat -> passenger scale -> rotation
seat 0.800000218556947 0.5 2.4999999300617666 true
seat -0.8999998164121585 0.5 2.100000078680494 
seat -0.8999998688658266 0.5 1.5000000786804963 false 1 180
seat 0.9000001311341665 0.5 1.4999999213194921 false 1 180
seat 0.8999999737731625 0.5 -0.3000000786805009 
seat 0.8999999344329116 0.5 -0.7500000786804991 false 1 180
seat 0.8999997901853246 0.5 -2.400000078680493 
seat -0.9000002098146686 0.5 -2.399999921319489 
seat 0.8999997595873516 0.5 -2.750000078680492 false 1 180
seat -0.9000002404126416 0.5 -2.7499999213194877 false 1 180


health 20
inventorySize 9

maxSpeed 1.2
acceleration 0.0035
deceleration -0.0125

//Dimensions used for hitbox calculations
width 3
length 7.6
height 3


//Whether or not players can ride this vehicle
rideable true

//Add items needed for crafting.
//Item name -> item count
craftingRecipeEntry minecraft:paper 1
craftingRecipeEntry minecraft:lapis_lazuli 1


//x -> y -> z -> width -> height -> whether it connects to a trailer -> texture -> floor height -> floor red -> floor green -> floor blue -> floor alpha
articulatedJoint 0 0.25 -3.9375     2.875 2.71875     true articulated_joint.png 0.375    0.2078 0.2392 0.247 1
trailerHitchPosition 0 1.125 -4.625 


//Displays
display front -1.25 2.8125 3.775 40 4 -3 0
display right -1.475 2.84375 1.125 20 5 0 -90
display front_inside 0.375 2.821875 3.2125 12 4.8 26.5 -180


walkArea 1.2 0.625 -4.25      -1.2 0.625 -4.25   -1.2 0.625 -3.9375     1.2 0.625 -3.9375     hop_trailer
walkArea 1.2 0.625 -3.9375     -1.2 0.625 -3.9375   -1.2 0.625 -1.625     1.2 0.625 -1.625     default
walkArea 1.2 0.625 -1.625    0 0.625 -1.625   0 0.625 0.625     1.2 0.625 0.625     default
walkArea 0 0.625 -1.625     -1.4375 0.625 -1.625   -1.4375 0.625 0.625     0 0.625 0.625     entrance
walkArea 1.2 0.625 0.625    -1.2 0.625 0.625   -1.2 0.625 2.5     1.2 0.625 2.5     default

walkArea 1.2 0.625 2.5     0 0.625 2.5   0 0.625 3.625    1.2 0.625 3.625     default
walkArea 0 0.625 2.5     -1.4375 0.625 2.5   -1.4375 0.625 3.625     0 0.625 3.625     entrance


//right headlight top
light 1f 1f 0.4f 1f 0 -1,0.5,3.8313 -1,0.625,3.8313 -1.125,0.625,3.8313 -1.125,0.5,3.8313 night
//right headlight middle
light 1f 1f 0.4f 1f 0 -1.0625,0.75,3.8313 -1.0625,0.875,3.8313 -1.1875,0.875,3.8313 -1.1875,0.75,3.8313 night
//right headlight bottom
light 1f 1f 0.4f 1f 0 -1.125,1,3.8313 -1.125,1.125,3.8313 -1.25,1.125,3.8313 -1.25,1,3.8313 night
//front right turn indicator
light 1f 0.7f 0.0f 1f 10 -1.0625,0.25,3.815 -1.0625,0.375,3.815 -1.1875,0.375,3.815 -1.1875,0.25,3.815 indicator_right

//left headlight top
light 1f 1f 0.4f 1f 0 1.125,0.5,3.8313 1.125,0.625,3.8313 1,0.625,3.8313 1,0.5,3.8313 night
//left headlight middle
light 1f 1f 0.4f 1f 0 1.1875,0.75,3.8313 1.1875,0.875,3.8313 1.0625,0.875,3.8313 1.0625,0.75,3.8313 night
//left headlight bottom
light 1f 1f 0.4f 1f 0 1.25,1,3.8313 1.25,1.125,3.8313 1.125,1.125,3.8313 1.125,1,3.8313 night
//front left turn indicator
light 1f 0.7f 0.0f 1f 10 1.1875,0.25,3.815 1.1875,0.375,3.815 1.0625,0.375,3.815 1.0625,0.25,3.815 indicator_left