dec: 66 hex: 42 bin: 1000010
Rails (also known as minecart tracks) are non-solid blocks that provide a path along which minecarts can travel.
Rails can be mined with anything, but pickaxes are the quickest.
|Block||Hardness||Tool||Breaking time (seconds)|
They also drop as items when:
- the block beneath them falls, is moved, or removed
- a liquid flows over them
- a piston moves them into a space with no floor below them
If a track is placed next to an existing track, the two tracks will join automatically. If a track is placed perpendicular to an existing length of track, then the track connecting them will turn into a curve. However, destroying track will not cause remaining track to re-orient itself.
If a track leads up to a one-block high ledge, the piece placed up against the ledge will turn into a ramp if another track is placed on top of the ledge.
Minecarts that encounter a series of curved tracks in an alternating, zig-zag pattern will travel in a straight line at 45 degrees until the track straightens out or curves in the same direction twice (u-turn), but it will still lose speed as though it were going through a series of bends.
The curved section of a rail at T intersections can be powered by redstone circuits and their direction can change with switches provided there is no confusion about the 2 directions to switch to. Separate tracks laid adjacent but at the next level lower or higher can sometimes cause issues. Since there are no formal rail junctions, switched T intersections are the only method by which the player can have a track system that leads in more directions than back and forth. In rare cases, curved track sections will not change appearance when their direction is changed. If a track switching mechanism seems to be inexplicably broken, test it by running a cart on the track rather than by looking at how the track appears to be oriented. Redstone circuits will not affect normal track blocks or track ramps.
When a cart is traveling on a curve, it will momentarily lose collision prior to exiting the curve. Therefore, if a block is placed directly after the curve instead of a track piece, the cart will phase through it.
It should be noted that since minecarts travel diagonally on curves, it can miss the hole if it has enough speed, by skipping over it, if the hole is 1x1. This can be avoided by blocking the sides.
It is not recommended to use this method in rapid succession, as the cart will slow down a lot. Anyone sitting in the cart will likely be subject to suffocation.
At non-curve track intersections, minecarts will always travel south or east (as shown in the diagram to the left). This is commonly referred to as the south-east rule.
This rule also applies to T-intersections, and determine which way the curve from the intersection will face when unpowered.
At non-curve track intersections minecarts will always travel downhill if they can. This is known as the downhill rule and overrides the south-east rule.
Ramp clearance/one-way effect
A block placed above the track at the downhill end of a ramp will prevent minecarts from traveling down the slope, but not up. In order for a minecart to move down a diagonal tunnel, there must be just as much clearance as a player needs to walk it.
If a straight track piece leads to a curve block and isn't attached to the curve, a minecart will run over the gap and continue to go straight over the curve. This is not applicable with other types of rails.
Notably, the minecart can exceed the normal 8 m/s speed limit while it jumps over the gap. For example, by placing intersections on every other block of a straight track, it is possible to travel at 10 m/s in a straight direction (but it will be a very uncomfortable ride).
Every rail has a ID name of
minecraft:rail and stores its orientation in its block data. A rail also has a block state which is expected to replace the functionality of block data in a future version.
A rail's block data specifies the directions to which it connects.
|0||Straight rail connecting to the north and south.|
|1||Straight rail connecting to the east and west.|
|2||Sloped rail ascending to the east.|
|3||Sloped rail ascending to the west.|
|4||Sloped rail ascending to the north.|
|5||Sloped rail ascending to the south.|
|6||Curved rail connecting to the south and east.|
|7||Curved rail connecting to the south and west.|
|8||Curved rail connecting to the north and west.|
|9||Curved rail connecting to the north and east.|
- See also: Block states
Specifies the rail's orientation.
For example, a
|Seecret Friday 1||"Seecret Friday Update" to Infdev.|
|1.6||Before this update, parallel tracks could be used to create minecart boosters.|
|1.0.0||Beta 1.9-pre1||Rails are destroyed by snowfall (bug).|
|Beta 1.9-pre4||Some rail behavior was affected following changing the south-west rule to south-east rule.|
|1.3.1||12w25a||Rails can now be placed on upside-down slabs and stairs.|
|1.5||13w04a||Mobs no longer walk over rails unless they are pursuing the player.|
|Pocket Edition Alpha|
|0.8.0||build 2||Added rails.|
|0.9.0||build 1||Rails now naturally spawn in abandoned mine shafts.|
Issues relating to "Rail" are maintained on the issue tracker. Report issues there.
- When walking on a block that has a rail on top, you will hear the sound of the block you're walking on, but if you jump (while still walking), you will hear the sound of iron.
- Rails are approximately 2-foot gauge (the gauge is the distance between the rails).