Rail Track Switcher

A rail track switcher lets you toggle the direction of a curved rail at a T-intersection so your minecart can travel either left or right. This tutorial shows you how to wire a completely hidden underground switch controlled by a surface lever. It is perfect for survival rail networks, train stations, and multi-destination minecart tracks.

Minecart & Rail CircuitsBeginnerJava Edition
Rail Track Switcher video tutorial

Video: Switching Rail Track Directions in Minecraft 1.18.2+ by Machy

How to build it

  1. Build the Rail Intersection

    Lay down your regular rails and powered rails to form a T-intersection where one main track splits into a left and a right path. Make sure the center junction piece is a normal rail, as powered rails cannot curve.

  2. Place a Torch Under the Junction

    Dig down below the center curved rail of your intersection. Leave the solid block directly beneath the rail intact, and place a redstone torch on the underside (or two blocks down) so that it powers the block supporting the junction rail.

  3. Position the Surface Lever

    Choose a convenient spot near the track where you can reach it while riding or waiting in your minecart. Place a lever on top of a solid ground block.

  4. Wire the Lever Inverter

    Dig two blocks down below the lever's ground block and place a piece of redstone dust directly beneath that block. Attach a second redstone torch to the side of the block that holds this redstone dust.

  5. Connect the Underground Redstone Line

    Dig a three-block-deep trench from the lever setup over to the block supporting the first redstone torch under the track. Run a line of redstone dust along the floor from the lever's side torch straight into the block holding the track's redstone torch.

  6. Cover the Wiring and Test

    Cover up your underground trench with floor blocks so all the redstone is completely hidden. Flip the lever to watch the curved rail flip between left and right, then test it by riding a minecart down the line.

How it works

This circuit works by taking advantage of how curved regular rails respond to a redstone signal while keeping all wiring hidden underground:

  • Lever Input: When you flip the surface Lever ON, it strongly powers the floor block beneath it, which turns on the piece of Redstone Dust sitting two blocks down.
  • Signal Inversion: That dust powers the block it sits on, turning OFF the Redstone Torch attached to the side of that block.
  • Underground Line: With the side torch turned off, the underground Redstone Dust trail loses power, allowing the second Redstone Torch underneath the rail junction to turn ON.
  • Track Switching: The vertical torch strongly powers the solid block directly beneath the curved Rail, causing the rail to flip its orientation from one direction to the other. Flipping the lever back reverses the torch states and switches the track back.

Tips & variations

  • Simpler Direct Wiring: If you place the lever close to the intersection, you do not strictly need the double-torch inverter—you can simply run redstone dust from under the lever block into the block holding the vertical torch beneath the rail.
  • Use Regular Rails at the Corner: Only regular Rail blocks can curve and switch directions; Powered Rail, Detector Rail, and Activator Rail always stay straight.
  • On-the-Fly Switching: Place the lever a few blocks ahead of the intersection along the incoming track so you can click it while moving in your minecart without stopping.
  • Repeater Extension: If your lever is more than 15 blocks away from the intersection, place a redstone repeater along the underground dust line to refresh the signal.

Frequently asked questions

Why won't my rail switch directions when I flip the lever?
Make sure the center intersection block is a standard Rail (not a Powered Rail) and that it connects to three adjacent track paths in a T-junction. Also check that the redstone torch underneath is directly powering the block the rail sits on.
Can I switch the track while riding in a minecart?
Yes! As long as the lever is placed alongside the track within reach, you can flip it right before you reach the intersection to choose your direction on the fly.
Why use redstone torches instead of running redstone dust right next to the rail?
Powering the block underneath the rail with a vertical redstone torch lets you hide all of the redstone underground, keeping the surface around your railway completely clean and flush.

Components used

More rail switch