Skip to content

Adding Vehicles

Trossty edited this page Nov 19, 2026 · 1 revision

Adding Vehicles

A new vehicle is not Java code but one JSON file. Any datapack (or mod) that puts a file at

data/<namespace>/overthought_vehicles/vehicle/<name>.json

adds a vehicle. No model file, texture or registration code is needed: the body is built from the boxes in the file when the game starts, and its paint is redrawn whenever the vehicle is painted. The mod's own vehicles are made exactly this way: see data/overthought_vehicles/overthought_vehicles/vehicle for 27 examples.

{
  "chassis": "car",
  "width": 1.9, "height": 1.8,
  "color": "white",
  "performance": { "speed": 1.05, "acceleration": 1.0, "fuel_use": 0.85,
                   "braking": 1.05, "steering": 1.05, "offroad": 0.0 },
  "factory": { "engine": "inline4", "fuel": "petrol", "tyres": "road" },
  "seats":  [ [-6.4, 4.4, 3], [6.4, 4.4, 3] ],
  "wheels": [ { "at": [-13, 5.5, 24], "radius": 5.5, "width": 4, "steers": true } ],
  "shape":  [ { "from": [-15, 4, 30.5], "to": [15, 13, 38.5], "color": "paint" },
              { "from": [-13, 14, 12], "to": [13, 28, 13.3], "color": "paint", "tilt": 43 } ]
}

Fields

  • Units are sixteenths of a block; x is across, y is up, z is forward.
  • chassis: the machine underneath and the item it drops: car, pickup (a bed that is a chest), tanker, motorcycle, boat, plane, helicopter or trailer. Look at the mod's own files for each.
  • width / height: the collision box, in blocks.
  • tank: the tank in litres (default 50).
  • performance: multipliers on the chassis' values. offroad is 0–1: how much of the grip lost on dirt, sand and snow it gets back.
  • factory: what it leaves the factory with: engine (inline4, inline6, v6, v8), fuel (petrol, diesel or electric), tyres and turbo.
  • seats: where each rider's hips go; the first seat is the driver's. Up to 16 seats.
  • wheels: round wheels and rims are drawn for you; those with steers turn with the steering.
  • steering_wheel_rise (optional): how many pixels above the hips the middle of the steering wheel sits. Left out, it is worked out from the dashboard (at least 9).
  • steering_wheel_rake (optional): how many degrees the steering wheel leans back from upright. Defaults to 28.
  • handlebars (optional): true draws handlebars instead of a steering wheel.
  • materials: what the Vehicle Workstation asks for on top of the chassis' parts.
  • shape: the body boxes (up to 512). color is paint / paint_dark / paint_light (follows the vehicle's paint), a fixed #RRGGBB, or a see-through #AARRGGBB (that is how glass is made). tilt leans a box about its own middle: that is how windscreens, bonnets and rear windows slope.
  • Name: the translation key vehicle.<namespace>.<name>; without one it comes from the file name.

Vehicle definitions are a dynamic registry, so /reload is not enough: reopen the world. In multiplayer they travel from the server to the clients on their own.

Clone this wiki locally