Rail

A Rail is a non-solid track block that guides minecarts along straight, sloped, or curved paths. In redstone circuits, standard rails are the only rail variant capable of curving and can be switched at T-junctions using a redstone signal to change a minecart's route.

Rails & MinecartsBeginnerPiston mechanics

How It Works & Redstone Switching

Unlike powered, detector, and activator rails, standard rails do not accelerate carts or emit signals, but they are the only rails that can form 90-degree corners. Their primary redstone behavior is track switching:

  • T-Junction Switching: When a rail is placed at the center of three adjacent rails (forming a T-intersection), it becomes a curved track connecting two of the branches. Applying redstone power (via a lever, button, redstone torch, or powered block) toggles the curve to connect the alternate branch.
  • Preferred State Reset: If a rail is forced into a non-preferred orientation during building, powering or depowering it with redstone updates the rail to its default preferred state.
  • Directional Priority: When sloping up or down to meet adjacent tracks one block higher or lower, rails prefer directions in the order: west, east, south, north. When surrounded by four adjacent rails to form a curved intersection, a newly placed rail always curves south-to-east.

Placement & Track Configuration

Rails must be placed on top of a valid supporting surface. They can sit on any full solid block (including mechanism components like dispensers, droppers, note blocks, and redstone lamps), as well as upside-down slabs, upside-down stairs, and top trapdoors. They can also be placed underwater, setting their waterlogged state to true.

When placed, a rail automatically checks adjacent blocks on the same level, one block up, and one block down to configure its shape state:

  • 4 flat curves: south_east, south_west, north_west, north_east
  • 2 flat straight: north_south, east_west
  • 4 slopes: ascending_east, ascending_west, ascending_north, ascending_south

Placing a new rail next to an existing north-south rail from the east or west will re-orient the existing rail to east-west. Removing the supporting block beneath a rail, pushing it with a piston into air, or letting water flow over an un-waterlogged rail causes it to pop off as an item.

Minecart Intersection Mechanics

Understanding how minecarts navigate rail intersections allows you to build passive and active routing systems:

  • Curve Jumping (One-Way Merges): If a straight track leads directly into the "back" (unconnected side) of a curved rail at a T-intersection, a minecart traveling along the straight track jumps the gap and continues straight through. Carts entering from either of the two connected curve legs follow the curve normally.
  • South-East Rule: At a 4-way intersection built without a curved center rail, a minecart entering from the east or west turns according to the south-east rule.
  • Downhill Rule: At non-curved intersections, minecarts always choose to travel downhill if a downward slope is available. This rule overrides the south-east rule.
  • Ramp Clearance Effect: Placing a solid block directly above the downhill end of a sloped rail blocks minecarts from traveling down the slope while still allowing carts to travel uphill through the block, creating a compact one-way gate.
  • Momentum & Climbing: An empty minecart at full speed can climb 10 blocks on unpowered sloped rails, while a cart with a rider or chest has more momentum and can climb at least 24 blocks. Maintaining a perpetual climb for an empty cart requires at least 3 powered rails every 6 blocks.

Common Circuits & Applications

  • Switchable Railway Junctions: Pair a curved rail at a T-junction with a lever or a detector rail hooked up to a T flip-flop to route players or chest minecarts between multiple destinations.
  • One-Way Loop Entries: Run a launching track directly into the back of a curved corner of a main rail loop. Incoming carts merge seamlessly onto the loop, while carts already circling the loop follow the curve without turning back into the station.
  • Piston Rail Movers & Curves: Because rails can be pushed and pulled by pistons and sticky pistons (as long as a support block is beneath their destination), you can shift track segments dynamically or build flying-machine Quarry unloaders.
  • 10 m/s Speed Tracks: A minecart briefly exceeds its normal 8 m/s speed limit while jumping over the unconnected back of a curved rail. Alternating straight rails and curved intersection rails every other block allows straight-line travel at up to 10 m/s.
  • Mob Pathfinding Barriers: Many mobs (including zombies, pillagers, and sheep) actively avoid walking onto rails in their pathfinding AI, making rails useful around open farm entrances.

Tips & Common Mistakes

  • Fixing Glitched T-Junctions: If you place a new track perpendicular to an existing straight track, the junction rail may visually appear straight while actually behaving as a curve. Break and replace the center intersection rail last so it updates visually into a proper curved T-junction.
  • Elevated Curve Collisions: Rails check one block up and down when forming curves. If a curved rail connects to a track one block higher without room for a sloping rail in between, a minecart rounding the corner will drive straight into the side of the upper block and get buried. Always leave a straight tile for the ascending slope before curving.
  • Parallel Track Interference: Laying separate tracks directly adjacent to each other—or one block higher or lower—can cause your rails to snap into unwanted curves or slopes when updated by redstone. Build one track, lock its endpoints, or leave a 1-block gap around switchable T-junctions.

Frequently asked questions

Can powered, detector, or activator rails curve?
No. Only standard rails can form 90-degree flat curves. Powered, detector, and activator rails can only be laid flat and straight or on ascending slopes.
How do you switch a rail track direction with redstone?
Build a T-intersection where three rail branches meet at one center standard rail. The center rail will curve to connect two of the paths. Powering that center rail with a lever, redstone torch, button, or adjacent powered block flips the curve to connect the other path.
Can rails be pushed by pistons?
Yes, both regular and sticky pistons can push and pull rails, provided there is a valid supporting block beneath the space the rail is moved into. If pushed over empty air, the rail breaks into an item.
How do you make a one-way rail intersection?
Aim a straight rail directly into the unconnected back side of a curved rail at a T-junction. A minecart coming from the straight track will jump across the curve and continue straight, while carts traveling along the curved paths will follow the turn.

Related components