
Video: Semi-Automatic Minecart Junction (and rail alert) Tutorial by n00b_asaurus
How to build it
- Dig the 9x9x3 Pit
Find the exact center block where your three rail lines meet at a T-intersection. Dig a 9x9 hole centered on that junction block, 3 blocks deep below the ground level.
- Build the 4-Comparator RS NOR Latch
Directly beneath the center junction block, step one block toward the flat wall that has no incoming track and place a solid block. Arrange 4 comparators in a square loop around the center, all set to subtraction mode (front torch lit), with redstone dust in the four corners connecting them.
- Wire the Center Rail Output
Place redstone dust on top of the starting block and place blocks on three sides of the comparator loop. Add an upside-down slab feeding a line of redstone dust up to the block directly underneath the center curved rail.
- Build the Three Torch Horseshoes
Against the three walls that have incoming tracks above them, build a 5-block horseshoe shape aligned with the track. Place a redstone torch in the center of each horseshoe and redstone dust on both sides of the torch.
- Place the Dirt Input Blocks
Next to both sides of all three horseshoes, step up one block and place redstone dust. Place 6 regular dirt blocks on top of the solid blocks right beside each redstone torch so the dirt cuts off the torch's signal from reaching the outer dust.
- Add the 4-Tick Delay Repeaters
In the four corners of the pit near the dirt inputs, place 4 redstone repeaters facing toward the outer corners. Set every repeater to a 4-tick delay.
- Install the Outer Reset Pistons
For the two outer inputs on the straight track, run redstone dust from each 4-tick repeater up two stepped blocks. Place 2 regular pistons facing inward above the dirt block line so that when powered, they push over the dirt to convert path blocks back into dirt.
- Install the Corner Shared Reset Pistons
In the two corners between the straight track and the branching track, step blocks up from the repeater and place 4 regular pistons (two facing each adjacent track's dirt input). Cover the stepped blocks with redstone dust so triggering either corner dirt block extends all 4 pistons.
- Connect Inputs to the Comparator Latch
At each of the four corners of the central comparator loop, place a redstone torch on the side of the input block facing the comparator dust, and run redstone dust from the dirt input lines into those blocks to invert and feed the signal into the latch.
- Light the Pit and Cover the Floor
Place regular torches in the four corners of the pit to prevent mob spawns. Place upside-down slabs over exposed redstone in the inner corners, optionally add a ladder and trapdoor for maintenance access, and fill the rest of the ground level with solid blocks.
- Lay the Rails and Test Directions
Reconnect your three rail lines across the floor so they meet at the center junction. Note that the block directly above each redstone torch is strongly powered, so you can place a powered rail right there to keep minecarts at full speed.
How it works
This circuit combines a dirt path block update detector with a unique 4-inverter comparator RS NOR latch:
- Path Block Input: A solid dirt block normally cuts off a diagonal redstone dust line from the redstone torch underneath the track. When you right-click the dirt with a shovel while riding by, it turns into a dirt path (a non-full block, 15/16ths high). Because it is no longer a full opaque block, it stops cutting the wire, allowing the redstone torch to immediately power the dust behind it.
- Piston Reset: That signal travels into two places at once: the central latch and a 4-tick repeater. After 4 redstone ticks, the repeater powers regular pistons above the dirt path, updating the block back into normal dirt and cutting the signal off again.
- 4-Input Comparator Loop: A T-junction only has two physical rail states (State 0 and State 1), but you approach it from three directions (6 total left/right choices). The two inner corners share identical target states, reducing the needed inputs to four alternating corners. By arranging four comparators in subtraction mode in a loop with constant power supplied to their rear inputs by redstone torches, they act as four chained NOT gates. Sending a pulse into any corner flips the alternating on/off state of the entire loop and locks the center rail into the matching curve.
Tips & variations
- Fixing a Reversed Junction: Depending on cardinal orientation (South-East rule), your curved rail might bend the opposite way from your shovel click. To fix this, climb down the access hatch, move the output tap block on the comparator loop to an adjacent side of the square, and briefly break and replace one redstone dust in the loop to reset it.
- Speed Limit: The junction responds fast enough for vanilla minecarts traveling at full speed (8 blocks/second). Keep a shovel in your hotbar and hold or click right-click on the left or right dirt block just before reaching the intersection.
- Edition Warning: This build was designed in Java Edition 1.19 (and works from 1.9 upward). It relies on Java path block transparency and comparator timing, so it may not work reliably on Bedrock Edition.





