Skip to content

Junctions and Routing

pvvlvz edited this page Nov 11, 2026 · 1 revision

What counts as a junction

A junction is a plain rail (minecraft:rail) where track joins from three or four sides. That's the same T-junction you'd build in vanilla:

            ║
            ║            ← branch
 ═══════════╩═══════════ ← main line
            ↑
       the junction rail (a plain rail with three neighbours)

Powered, detector and activator rails can't curve, so they are never junctions.

Who decides which way

Train At a junction
Manual Follows the rail as it is set, like a minecart. You can flip it with redstone, as in vanilla.
Automatic, with a schedule Picks the branch that leads to its current stop and flips the switch itself (you see the rail turn and hear a click).
Automatic, no schedule Leaves the junction as it is set, unless a train coming the other way holds that branch and the other side of a passing loop is free; then it takes the free side.

How the route is found

The train searches every branch along the track, trying every way at every further junction, and picks the one that reaches a station with the destination's name soonest.

  • The search only reads loaded chunks and covers up to 4,096 rail blocks.
  • If the destination isn't found within that, the train takes the branch that ends up closest in a straight line to the destination, so on very large networks it still heads the right way and searches again at the next junction.
  • Decisions are remembered per junction and refreshed every 10 seconds, so trains notice new or changed track within 10 s.
A train at the South station after taking the branch at a junction; the East station is in the distance

← Schedules · Home · Signals →

Clone this wiki locally