Train Tracks

Adds buildable train tracks and a train to ride them.
This mod lets you place train tracks as flooring (or on existing flooring) and spawn a mine cart to ride on them.








Laying Tracks

To toggle laying tracks, press Insert.

To move between track types press Page Up and Page Down.

To place a track, press Left Mouse.

To remove a track, press Right Mouse.


Riding the Train

To spawn a mine cart, hover over a track tile and press Enter.

To get on the cart, move to it and press Right Mouse.

To speed up the cart, hold down Up Arrow.

To slow down the cart, hold down Down Arrow.

To reverse directions, press R.

To turn left at the next junction, hold down Left Arrow.

To turn right at the next junction, hold down Right Arrow.

To get off the cart, press Right Mouse.


Notes

All keys except getting into and out of the cart are configurable.

The max speed is 20, you can change this in the config.

All mod sounds are configurable.

You can place a track on existing flooring, but you must remove the track to place new flooring.

To edit the config, use Generic Mod Config Menu, or edit the config.json file created on first run.


Custom Textures

You can change the texture of the tracks or mine cart using Content Patcher. The paths are:

"Mods/aedenthorn.TrainTracks/Tracks" for the tracks

"Mods/aedenthorn.TrainTracks/Train" for the parts of the train behind the player

"Mods/aedenthorn.TrainTracks/TrainFront" for the parts of the train in front of the player


Switches and Speed Tiles

You can program junction tile with switches and add speed change tiles using Object Import Map.


Technical

Requires SMAPI, uses Harmony.

Compatible with Mod Updater for automatic updates.

Code is at https://github.com/aedenthorn/StardewValleyMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.

The Train Tracks Team

profile avatar
Owner
  • 25
    Followers
  • 270
    Projects
  • 4.7M
    Downloads

More from ErintheView all

  • Advanced Auto-Grabber project image

    Advanced Auto-Grabber

    • 13
    • Mods

    Lets auto-grabbers grab outdoors, grab only from a specified animal type, grab truffles, and send products to chests.

    • 13
    • May 12, 2026
    • Mods
    • +1
  • Custom Monsters project image

    Custom Monsters

    • 39
    • Mods

    Lets modders create and spawn custom monster types.

    • 39
    • May 11, 2026
    • Mods
  • Prismatic Flowers project image

    Prismatic Flowers

    • 157
    • Mods

    Gives planted flowers a chance to be prismatic!

    • 157
    • May 10, 2026
    • Mods
  • Like a Duck to Water project image

    Like a Duck to Water

    • 12.6K
    • Mods

    Makes ducks actually want to swim in water once they have been fed and petted; also makes water tiles more accessible to ducks and adds friendship points towards the farmer when ducks are able to swim.

    • 12.6K
    • May 8, 2026
    • Mods
  • Advanced Auto-Grabber project image

    Advanced Auto-Grabber

    • 13
    • Mods

    Lets auto-grabbers grab outdoors, grab only from a specified animal type, grab truffles, and send products to chests.

    • 13
    • May 12, 2026
    • Mods
    • +1
  • Custom Monsters project image

    Custom Monsters

    • 39
    • Mods

    Lets modders create and spawn custom monster types.

    • 39
    • May 11, 2026
    • Mods
  • Prismatic Flowers project image

    Prismatic Flowers

    • 157
    • Mods

    Gives planted flowers a chance to be prismatic!

    • 157
    • May 10, 2026
    • Mods
  • Like a Duck to Water project image

    Like a Duck to Water

    • 12.6K
    • Mods

    Makes ducks actually want to swim in water once they have been fed and petted; also makes water tiles more accessible to ducks and adds friendship points towards the farmer when ducks are able to swim.

    • 12.6K
    • May 8, 2026
    • Mods