Skip to content

Resource Packs

pvvlvz edited this page Nov 16, 2026 · 2 revisions

There are no config files. Everything is set per train and per station in game.

The mod comes with one optional built-in resource pack, Tiny Trains Dynamic Lights, which is off by default. See Dynamic Lights.

Everything visual and audible can be replaced with a resource pack:

File Size What
assets/tinytrains/textures/entity/locomotive.png 128×128 Locomotive model texture
assets/tinytrains/textures/entity/coach.png 128×128 Coach model texture
assets/tinytrains/textures/entity/locomotive_paint.png 128×128 The locomotive's paintwork, in greys. The game multiplies it by the dye colour
assets/tinytrains/textures/item/locomotive.png 16×16 Locomotive item icon: everything but the paintwork
assets/tinytrains/textures/item/locomotive_paint.png 16×16 Locomotive item icon: the paintwork, tinted like the model
assets/tinytrains/textures/item/coach.png 16×16 Coach item icon
assets/tinytrains/textures/block/station_side.png 16×16 Station block sides
assets/tinytrains/textures/block/station_top.png 16×16 Station block top
assets/tinytrains/textures/block/station_bottom.png 16×16 Station block bottom
assets/tinytrains/sounds.json Which sound files the five sound events play
assets/tinytrains/lang/*.json All text, including tooltips and announcements

The entity models are defined in code in Blockbench's Modded Entity format (LocomotiveModel and CoachModel), so the texture layout follows their cube list. The easiest way to restyle a train is to edit the existing PNG in place.

Example: a deeper whistle. Put this in your resource pack's assets/tinytrains/sounds.json:

{
  "train.whistle": {
    "replace": true,
    "sounds": [{ "name": "note/flute", "pitch": 1.0 }],
    "subtitle": "subtitles.tinytrains.train.whistle"
  }
}

Example: rename the announcements. In assets/tinytrains/lang/en_us.json:

{
  "message.tinytrains.arrived": "This is %s. Mind the gap!",
  "message.tinytrains.next_stop": "The next station is %s"
}

The textures that ship with the mod are drawn by tools/gen_textures.py, a small standard-library Python script. Run python tools/gen_textures.py to regenerate them after editing it.


← Web Maps · Home · Dynamic Lights →

Clone this wiki locally