Automatic Rail Junction Switch

This smart automatic rail junction switch briefly stops your minecart at a 3-way T-intersection, giving you about 3 seconds to press a button if you want to turn. If you don't press anything, the circuit automatically launches you forward along your main track (or towards a default return direction from a branch). It works reliably in both Java and Bedrock Edition and is ideal for long railway networks with multiple side stops.

Minecart & Rail CircuitsIntermediateJava & Bedrock
Automatic Rail Junction Switch video tutorial

Video: Automatic Minecraft Rail Junction Switch for Bedrock and Java Edition | Easy Redstone Tutorial by XpenSage

How to build it

  1. Orient the Junction and Dig the Platform

    Align your main track running East-West with the branch destination to the North (or North-South main track with the branch to the East) so default rail curving rules work properly. Prepare an 11x7 recessed area in the ground so you have room to wire beneath the tracks.

  2. Dig V-Slopes for Stopping Points

    On the West, East, and North approaches toward the center T-junction, knock out a 1-block-deep hole just before the intersection. These three dips will create V-shaped downward slopes where incoming minecarts safely pause.

  3. Lay the Intersection Rails

    Place a Detector Rail right in front of each of the three holes (on the intersection side), then run 3 Powered Rails down into each hole and up the approach slope. Connect the center T-junction and outer tracks with regular Rails; the center junction rail should naturally curve toward the East.

  4. Install the Choice Buttons

    At each of the three approaches, identify the solid floor blocks directly beside the first Powered Rail (where the player pauses). Place a Wooden Button on the blocks to the left and right of each stopping point (6 buttons total) to serve as your manual turn and forward controls.

  5. Place the Center Target and Torch

    Go underneath the platform directly below the center curving rail of the T-junction. Place a Target block two blocks below the rail with a Redstone Torch on top of it so the torch sits right beneath the junction floor block.

  6. Wire the Button Control Lines

    Underneath the blocks holding your Wooden Buttons, build small step-up lines of solid blocks leading to the Target block (3 blocks flat and 1 up for the East and West turn buttons, and 1 block flat and 1 up from the North). Cover these lines with Redstone Dust so pressing a turn button redirects into the Target block and turns off the Redstone Torch.

  7. Place Outer Detector Rails for Auto-Forward

    Back on top of the tracks, count 3 regular Rails outward from the outer end of the Powered Rails on all three approaches (West, East, and North). Replace the next rail on each approach with a Detector Rail to trigger the automatic countdown as your minecart arrives.

  8. Build the West Repeater Delay Chain

    Under the block supporting the West outer Detector Rail, place a solid block with a 1-block air gap and put Redstone Dust on it. Run a chain of 8 Redstone Repeaters (a row of 5 turning into a row of 3, all set to 4-tick delay) from that dust into the block under the West 'go straight' button/powered rail.

  9. Build the East and North Delay Chains

    Repeat the same outer Detector Rail delay wiring for the East and North approaches: place a dust-topped block under each outer Detector Rail and run an 8-repeater chain (all set to 4 ticks) into the default forward/return Powered Rail line for that approach. Fill all corner connections between repeaters with Redstone Dust.

How it works

This junction combines a sloped powered-rail brake, a target-block rail flipper, and three repeater delay lines:

  • Approach & Pause: As your minecart approaches the junction, it rolls over the outer Detector Rail, which sends a pulse into an 8-repeater delay chain (set to 4 ticks each, giving roughly a 3.2-second decision window). A moment later, the cart lands on the unpowered V-slope of Powered Rails and stops next to two Wooden Buttons.
  • Curving Rail Behavior: In Minecraft, a T-junction rail defaults to one curve when unpowered and flips to the opposite curve when powered. Sitting beneath the junction is a Redstone Torch on a Target block. Because Target blocks automatically redirect adjacent Redstone Dust, any button line wired into the Target block will invert the torch and switch the track direction while simultaneously powering the sloped Powered Rails via the inner Detector Rail to launch the cart.
  • Auto-Forward Timeout: If you do not press any button while paused, the signal traveling through the 8-repeater delay chain arrives after about 3 seconds. It powers the default direction line for that entrance, boosting your minecart off the sloped Powered Rails and sending you straight ahead (or turning onto your default return path from the North branch).

Tips & variations

  • Use Wooden Buttons Only: Always use Wooden Buttons (1.5-second pulse) rather than Stone Buttons (1-second pulse). The longer wooden button pulse keeps the center junction rail flipped long enough for the minecart to climb out of the V-slope and clear the intersection.
  • Compass Orientation Matters: Because regular rails follow the South-East rule when snapping at junctions, build your main line running East-West with the branch to the North, or rotated 90° clockwise (North-South with the branch to the East). If you place the branch to the West or South, you must swap the left/right button wiring underneath to invert which button powers the Target block.
  • Adjusting Decision Time: If 3 seconds feels too slow or too fast, simply add or remove 4-tick repeaters in the delay chains beneath each approach.
  • Avoid Instant U-Turns: As your cart exits the junction, it rolls over the outgoing outer Detector Rail, which triggers that side's delay chain harmlessly behind you. Wait at least 3–4 seconds before returning through the same junction so the delay line can finish resetting.

Frequently asked questions

Why does my minecart turn the wrong way when I press a button?
Rail intersections follow cardinal direction rules in Minecraft. Make sure your main track runs East-West with the side branch to the North (or North-South with the branch to the East). Also make sure you used Wooden Buttons, as Stone Buttons turn off before the minecart reaches the center rail.
Why do we need a Target block under the Redstone Torch?
A Target block automatically redirects adjacent Redstone Dust lines into itself even when the dust runs alongside it, allowing multiple button lines to invert the Redstone Torch cleanly in a tight space.
Can I change how long the minecart waits before auto-forwarding?
Yes. The wait time is controlled by the chain of 8 Redstone Repeaters under each approach. Add more repeaters for a longer pause, or remove a few repeaters (or lower their tick delay) for a quicker launch.

Components used

More rail switch