
Video: Automatic Minecraft Rail Junction Switch for Bedrock and Java Edition | Easy Redstone Tutorial by XpenSage
How to build it
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 ofPowered Railsand stops next to twoWooden 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 Torchon aTargetblock. Because Target blocks automatically redirect adjacentRedstone Dust, any button line wired into the Target block will invert the torch and switch the track direction while simultaneously powering the slopedPowered Railsvia the innerDetector Railto 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 Railsand 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.





