//Display name of the vehicle
name Articulated Bus Trailer
//Unique Identifier
id articulated_bus_trailer

model articulated_bus_trailer.obj
//Model group origins: group_name, x, y, z
origin at_middle_door_right -1.4375 0.625 2.6875
origin at_middle_door_left -1.4375 0.625 0.4375


//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 engine_running truck_engine_0.ogg engine_slow_outside 1,0,-2.25
sound engine_running truck_engine_1.ogg engine_medium_outside 1,0,-2.25
sound engine_running truck_engine_2.ogg engine_fast_outside 1,0,-2.25

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


//Tells the mod that this trailer is part of another vehicle. Same texture will be applied.
parents articulated_bus

//Wheels. Wheel type -> Position coordinates (multiples of 0.0625 (one pixel)) -> whether or not it can rotate
wheel wheel_large -1.3125 0.375 -0.8125 
wheel wheel_large 1.3125 0.375 -0.8125

//Seats. Position coordinates -> whether or not it is a driver seat -> passenger scale -> rotation
seat 0.9 0.5 2.2625 
seat 0.9 0.5 1.8125 false 1 180
seat 0.9 0.5 -0.1625
seat -0.9 0.5 -0.1625
seat 0.9 0.5 -0.1875 false 1 180
seat -0.9 0.5 -0.1875 false 1 180



health 20
inventorySize 9

maxSpeed 1.2
acceleration 0.0035
deceleration -0.0125

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


trailer true
 
//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.1875     2.875 2.71875     false articulated_joint.png 0.375    0.2078 0.2392 0.247 1

couplerPosition 0 1.125 3.9375 


//Displays
display back 1.375 2.6875 -3.475 18 5 0 180


walkArea 1.2 0.625 -3.2    -1.2 0.625 -3.2  -1.2 0.625 0.4375     1.2 0.625 0.4375     default
walkArea 1.2 0.625 0.4375    0 0.625 0.4375   0 0.625 2.6875     1.2 0.625 2.6875     default
walkArea 0 0.625 0.4375     -1.4375 0.625 0.4375   -1.4375 0.625 2.6875     0 0.625 2.6875     entrance
walkArea 1.2 0.625 2.6875     -1.2 0.625 2.6875   -1.2 0.625 3.1875     1.2 0.625 3.1875     default
walkArea 1.2 0.625 3.1875     -1.2 0.625 3.1875   -1.2 0.625 3.5     1.2 0.625 3.5     hop_tow


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

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