Share

Share

Rail

From Minecraft Wiki
Jump to: navigation, search
Rail
Rails.png
Rail corner.png
Rail
Type

Non-Solid Block

Physics

No

Transparency

Yes

Luminance

No

Blast resistance

3.5

Hardness

0.7

Tool

This block can be broken with any tool, but a pickaxe is the quickest

Renewable

Yes

Stackable

Yes (64)

Flammable

No

First appearances

See History

Drops

Itself

Data value

dec: 66 hex: 42 bin: 1000010

Name

rail

Rails (also known as minecart tracks) are non-solid blocks that provide a path along which minecarts can travel.

Obtaining[edit]

Rails can be mined with anything, but pickaxes are the quickest.

Block Hardness Tool Breaking time (seconds)
Hand Wooden Stone Iron Diamond Golden Shears Sword

Rail
0.7
1.05 0.525 0.2625 0.175 0.1312 0.0875

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

Natural generation[edit]

Rails can be found naturally in abandoned mine shafts. They can also be found inside the minecart with chests there in stacks of 4 to 8.

Crafting[edit]

Ingredients Crafting recipe

Iron Ingot +
Stick

Iron Ingot
Iron Ingot Grid layout Arrow (small).png Rail16
Iron Ingot Stick Iron Ingot
Iron Ingot
Iron Ingot

Behavior[edit]

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.

Rail collision[edit]

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.

South-east rule[edit]

Track intersections.png
T-intersection-south-west.png

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.

Downhill rule[edit]

Downhill rule.png

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[edit]

2011-10-10 21.54.31.png

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.

Curve intersections[edit]

A diagram on how minecarts travel according to track curves.

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).

Data values[edit]

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.

Block data[edit]

A rail's block data specifies the directions to which it connects.

Value Description
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.

Block state[edit]

See also: Block states
Name Value Description

 shape
north_south
east_west
ascending_north
ascending_south
ascending_east
ascending_west
north_east
north_west
south_east
south_west

Specifies the rail's orientation.

For example, a south_east rail is a curved rail which connects to the south and to the east.

Video[edit]

History[edit]

Infdev
Seecret Friday 1
Railsold.png
Rails were introduced in the first "Seecret Friday Update" to Infdev.
Alpha
1.2.0
Rails.png
Texture changed slightly.
Beta
1.6 Before this update, parallel tracks could be used to create minecart boosters.
Official release
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.
Console Edition
TU1 Added rails.

Issues[edit]

Issues relating to "Rail" are maintained on the issue tracker. Report issues there.

Trivia[edit]

  • 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).

Gallery[edit]