//Display name of the vehicle
name Bus
//Unique Identifier
id bus

model bus.obj
//Model group origins: group_name, x, y, z
origin front_door -1.4375 0.625 4.375
origin middle_door_right -1.4375 0.625 1.375
origin middle_door_left -1.4375 0.625 -0.875

//Default animations. <anim_type> <anim_id>
defaultAnimation bus_arrive tsdefaultpack:bus_open_doors
defaultAnimation bus_depart tsdefaultpack:bus_close_doors


//Possible textures of the vehicle
textures bus.png bus_white_red.png bus_yellow.png


//Sound. <sound_type> -> <pack>:(optional)<sound_name> <pack>:(optional)<sound_properties> <x,y,z>
sound engine_running truck_engine_0.ogg engine_slow_outside 1,0,-4.5
sound engine_running truck_engine_1.ogg engine_medium_outside 1,0,-4.5
sound engine_running truck_engine_2.ogg engine_fast_outside 1,0,-4.5

sound engine_running truck_engine_0_inside.ogg engine_slow_inside 1,0,-4.5
sound engine_running truck_engine_1_inside.ogg engine_medium_inside 1,0,-4.5
sound engine_running truck_engine_2_inside.ogg engine_fast_inside 1,0,-4.5

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.312500202165174 0.375 2.5625 true
wheel wheel_large -1.3124997978348163 0.375 2.5625 true
wheel wheel_large -1.3125002076290977 0.375 -2.125 
wheel wheel_large 1.3124997923708925 0.375 -2.125 

//Seats. Position coordinates -> whether or not it is a driver seat -> passenger scale -> rotation
seat 0.8000002622683371 0.5 3.25 true
seat -0.8999997727007686 0.5 2.85 
seat -0.8999998251544366 0.5 2.25 false 1 180
seat 0.9000001748455566 0.5 2.25 false 1 180
seat 0.9000000174845526 0.5 0.45 
seat 0.8999999781443015 0.5 0 false 1 180
seat 0.8999998338967146 0.5 -1.65 
seat -0.9000001661032786 0.5 -1.65 
seat 0.8999998032987415 0.5 -2 false 1 180
seat -0.9000001967012516 0.5 -2 false 1 180
 
seat 0 0.5 -4.35 
seat -0.9 0.5 -4.35 


health 20
inventorySize 9

maxSpeed 1.2
acceleration 0.005
deceleration -0.0125

//Dimensions used for hitbox calculations
width 3
length 9
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


//Displays
display front -1.25 2.8125 4.525 40 4 -3 0
display right -1.475 2.84375 1.875 20 5 0 -90
display back 1.375 2.6875 -4.7875 18 5 0 180
display front_inside 0.375 2.821875 4.025 12 4.8 26.5 -180


walkArea 1.2 0.625 -4.5     -1.2 0.625 -4.5   -1.2 0.625 -0.875     1.2 0.625 -0.875     default
walkArea 1.2 0.625 -0.875     0 0.625 -0.875   0 0.625 1.375     1.2 0.625 1.375     default
walkArea 0 0.625 -0.875     -1.4375 0.625 -0.875   -1.4375 0.625 1.375     0 0.625 1.375     entrance
walkArea 1.2 0.625 1.375     -1.2 0.625 1.375   -1.2 0.625 3.25     1.2 0.625 3.25     default

walkArea 1.2 0.625 3.25     0 0.625 3.25   0 0.625 4.375     1.2 0.625 4.375     default
walkArea 0 0.625 3.25     -1.4375 0.625 3.25   -1.4375 0.625 4.375     0 0.625 4.375     entrance


//right headlight
light 1f 1f 0.4f 1f 0 -0.9375,0.4375,4.5813 -0.9375,0.625,4.5813 -1.375,0.625,4.5813 -1.375,0.4375,4.5813 night
//front right turn indicator
light 1f 0.7f 0.0f 1f 10 -1.0625,0.25,4.565 -1.0625,0.375,4.565 -1.1875,0.375,4.565 -1.1875,0.25,4.565 indicator_right

//left headlight
light 1f 1f 0.4f 1f 0 1.375,0.4375,4.5813 1.375,0.625,4.5813 0.9375,0.625,4.5813 0.9375,0.4375,4.5813 night
//front left turn indicator
light 1f 0.7f 0.0f 1f 10 1.1875,0.25,4.565 1.1875,0.375,4.565 1.0625,0.375,4.565 1.0625,0.25,4.565 indicator_left


//back right turn indicator
light 1f 0.7f 0f 1f 10 -1.375,0.6875,-4.7777 -1.375,0.8125,-4.7777 -1.25,0.8125,-4.7777 -1.25,0.6875,-4.7777 indicator_right
//right brake light
light 1f 0.0f 0f 0.9f 0 -1.375,0.8125,-4.7777 -1.375,0.9375,-4.7777 -1.1875,0.9375,-4.7777 -1.1875,0.8125,-4.7777 braking
light 1f 0.0f 0f 0.9f 0 -1.25,0.6875,-4.7777 -1.25,0.8125,-4.7777 -1.1875,0.8125,-4.7777 -1.1875,0.6875,-4.7777 braking
//right tail light
light 0.7f 0.0f 0f 0.5f 0 -1.375,0.9375,-4.7777 -1.375,1.25,-4.7777 -1.1875,1.25,-4.7777 -1.1875,0.9375,-4.7777 night

//back left turn indicator
light 1f 0.7f 0f 1f 10 1.25,0.6875,-4.7777 1.25,0.8125,-4.7777 1.375,0.8125,-4.7777 1.375,0.6875,-4.7777 indicator_left
//left brake light
light 1f 0.0f 0f 0.9f 0 1.1875,0.8125,-4.7777 1.1875,0.9375,-4.7777 1.375,0.9375,-4.7777 1.375,0.8125,-4.7777 braking
light 1f 0.0f 0f 0.9f 0 1.1875,0.6875,-4.7777 1.1875,0.8125,-4.7777 1.25,0.8125,-4.7777 1.25,0.6875,-4.7777 braking
//left tail light
light 0.7f 0.0f 0f 0.5f 0 1.1875,0.9375,-4.7777 1.1875,1.25,-4.7777 1.375,1.25,-4.7777 1.375,0.9375,-4.7777 night