Mineuniverse
Rail

Rail

A rail is a non-solid block that provides a path along which minecarts can travel, and can be placed either flat on the ground, as a ramp, or curved. A…

17 min read Updated
Blocks Stackable resources Renewable resources Manufactured blocks Generated structure blocks Non-solid blocks Redstone Mechanisms
Advertisement Remove ads with Premium →
Contents (31)
  1. Obtaining
  2. Breaking
  3. Natural generation
  4. Generated loot
  5. Crafting
  6. Usage
  7. Placement
  8. Redstone functionality
  9. Minecart behavior
  10. Mob behavior
  11. Piston interactivity
  12. Sounds
  13. Data values
  14. ID
  15. Block states
  16. Achievements
  17. Videos
  18. History
  19. Java Edition
  20. Bedrock Edition
  21. Legacy Console Edition
  22. New Nintendo 3DS Edition
  23. Data history
  24. Issues
  25. Trivia
  26. Gallery
  27. Renders
  28. Screenshots
  29. In other media
  30. See also
  31. References
For other uses, see Rail (disambiguation).
This article needs to be updated.
Please update this article to reflect recent updates or newly available information. The talk page may contain suggestions.
Reason: Much of the information about rail mechanics needs to be checked for accuracy and/or reformatted to reflect modern Minecraft. The effects waterlogged rails have on minecart speeds need explaining. Experimental Minecart Improvements may be worth mentioning in some capacity, even if it is just to mention it exists.
Rail
Rail (NS).png: Infobox image for Minecraft block 'Rail'
Rail (ES).png: Infobox image for Minecraft block 'Rail'
Invicon Rail.png: Inventory sprite for Rail in Minecraft as shown in-game with description: Rail
Renewable Yes
Stackable Yes (64)
Tool
Blast resistance 0.7
Hardness 0.7
Luminous No
Transparent Yes
Waterloggable Yes
Flammable No
Catches fire
from lava
No
Map color
 0 NONE
Note block instrument Default (Harp)

A rail is a non-solid block that provides a path along which minecarts can travel, and can be placed either flat on the ground, as a ramp, or curved.

A curved rail allows minecarts to turn corners, and can rotate to connect to a different rail line while powered.

Obtaining

Breaking

The suitable tool to break a rail is a pickaxe. It will always drop itself when broken.

Block Rail
Hardness 0.7
Tool
Breaking time (sec)[A]
Default 1.05 (JE)
1.05 (BE)
ItemSprite wooden-pickaxe.png: Sprite image for wooden-pickaxe in MinecraftWooden 0.55 (JE)
0.55 (BE)
ItemSprite stone-pickaxe.png: Sprite image for stone-pickaxe in MinecraftStone 0.3 (JE)
0.3 (BE)
ItemSprite copper-pickaxe.png: Sprite image for copper-pickaxe in MinecraftCopper 0.25 (JE)
0.25 (BE)
ItemSprite iron-pickaxe.png: Sprite image for iron-pickaxe in MinecraftIron 0.2 (JE)
0.2 (BE)
ItemSprite diamond-pickaxe.png: Sprite image for diamond-pickaxe in MinecraftDiamond 0.15 (JE)
0.15 (BE)
ItemSprite netherite-pickaxe.png: Sprite image for netherite-pickaxe in MinecraftNetherite 0.15 (JE)
0.15 (BE)
ItemSprite golden-pickaxe.png: Sprite image for golden-pickaxe in MinecraftGolden 0.1 (JE)
0.1 (BE)
Legend
  • incorrect tool, drops nothing
  • correct tool, drops nothing or something other than the block itself
  • correct tool, drops the block itself
  • italicized can be instant mined
  1. ↑ These durations ignore any other influential factors (e.g., Mining Fatigue) and are measured in seconds. For more information, see Breaking § Mining efficiency.

Natural generation

Rails can be found naturally running along the floor in mineshafts, both in the center of tunnels and under loot chest minecarts, and in the "pumpkin ring room" of woodland mansions.

Generated loot

Item Structure Container Quantity Chance
Java Edition and Bedrock Edition
Rail Mineshaft Chest not located in a sulfur cave 4–8 78.4%
Mineshaft Chest located in a sulfur cave 4–8 70.4%

Crafting

Ingredients Crafting recipe
Iron Ingot +
Stick
Invicon Iron Ingot.png: Inventory sprite for Iron Ingot in Minecraft as shown in-game linking to Iron Ingot with description: Iron IngotInvicon Iron Ingot.png: Inventory sprite for Iron Ingot in Minecraft as shown in-game linking to Iron Ingot with description: Iron IngotInvicon Iron Ingot.png: Inventory sprite for Iron Ingot in Minecraft as shown in-game linking to Iron Ingot with description: Iron IngotInvicon Stick.png: Inventory sprite for Stick in Minecraft as shown in-game linking to Stick with description: StickInvicon Iron Ingot.png: Inventory sprite for Iron Ingot in Minecraft as shown in-game linking to Iron Ingot with description: Iron IngotInvicon Iron Ingot.png: Inventory sprite for Iron Ingot in Minecraft as shown in-game linking to Iron Ingot with description: Iron IngotInvicon Iron Ingot.png: Inventory sprite for Iron Ingot in Minecraft as shown in-game linking to Iron Ingot with description: Iron Ingot
Invicon Rail.png: Inventory sprite for Rail in Minecraft as shown in-game with description: Rail16

Usage

A rail can be used as a track for minecarts to move along.

Placement

To place a rail, use a rail item while pointing at a surface facing the space the rail should occupy. A rail can be placed on top of a block whose top face has a rim around the edge, such as any full block, hopper, top slab, upside-down stairs, or top trapdoor. A full list of these blocks is here. A rail can also be placed into a water source on any of these blocks and will be waterlogged after placement.

Rails visually float 1⁄16 blocks above the ground, with an outline 2⁄16 blocks high.

A rail cannot be attached to the side or bottom of any block, but attempting to make such an attachment may cause the rail to attach to the top of a block under the destination space. For example, if a fence is on the ground, attempting to attach a rail to the side of the fence causes the rail to be attached to the top of the ground next to the fence instead.

More information regarding placement on transparent blocks can be found at Opacity/Placement.

A placed rail configures itself to be straight or curved according to rail blocks around it.

  • If there are no other rails adjacent, or if placed beside an existing rail line of any type, then in Bedrock Edition the new rail orients itself as a straight north-south rail, and in Java Edition the new rail orients itself in the direction the player is facing.
  • A new rail placed at the end of an existing rail line continues the existing line in the same direction, either east-west or north-south.
  • If there are two adjacent rails on its level, or one level up or down, the newly placed rail configures itself as straight or curved as needed to connect the other two.
  • If placed between three adjacent rails (forming a T-junction) the newly placed rail configures itself as curved to join two of the sides.

Existing rail lines one block up and down are considered for adjacency in the same manner, and the new rail gets laid as a curve, but unless space is left for sloping rails, minecarts can continue past the curve only on level or one-block-down corners. In one-block-up corners, the cart ends up buried in the ground.

Some rail placements produce rail layouts that cause minecarts to collide and enter blocks.

  • If placed to form a 4-way junction with no curved rail, it does not form a cross-rail connection.
  • If placed between four adjacent rails to form a junction, the center rail always curves south-to-east.

Existing rails may get re-oriented, become sloping, or even change into curved rails when a new rail is placed adjacent to it:

  • An existing straight, north-south rail re-orients to east-west when a new rail is placed at the east or west sides.
  • If placed next to an existing rail that is one block up or down, the new rail becomes a ramp to join it. A rail "prefers", in order: west, east, south, and north. Other configurations can be created by placing and removing rails.
  • If a rail is placed perpendicular to an existing length of rail, it appears as a straight rail, but is in fact curved according to the patterns for T-junctions as seen above; minecarts going through the junction will turn the corner. Breaking and re-laying rails so that the middle rail is laid last causes it to be updated as a curved rail.

Redstone functionality

A curved rail at a T-junction can be rotated by applying redstone power.

If a rail is not in its most preferred available state, it will change to that preferred state as its default when the rail is updated via redstone power.[1]

Separate rails are laid adjacent, but at the next level, lower or higher rails can sometimes cause rail reorientation.

Minecart behavior

South-east rule

Main article: South-east rule

A minecart travels straight through a T-junction when entering from the "back of" the curved rail. It follows the curve when entering from either of the other two legs.

A minecart passes straight through a 4-way junction constructed to have no curved rail. When entering the 4-way from east or west a cart turns according to the south-east rule.

Downhill rule

At non-curve rail junctions, minecarts always travel downhill if they can, ignoring the south-east rule.

Ramp clearance & one-way effect

A block placed above a rail line at the downhill end of a ramp prevents minecarts from traveling down the slope, but not up. For a minecart to move down a diagonal tunnel, there must be clearance sufficient for a player to walk through it.

Curved rail interactions

A diagram on how minecarts travel according to rail curves.

If a straight rail leads to a curved rail and does not connect to it, a minecart runs over the gap and continues to go straight over the curved rail. This is not applicable for other types of rails.

Notably, minecarts can exceed the normal 8 m/s speed limit while it jumps over the gap. For example, by placing curved rails on every other block of a straight rail, it is possible to travel at 10 m/s in a straight direction.

As with straight T-junctions and 4-way junctions, the practice of making a minecart jump between rails can be used to make one-way entries onto a rail line. For curved rails, the behavior is more intuitive as the cart simply proceeds in the direction it is already going, allowing designs that do not rely on the south-east rule.

Minecart speeds

To accelerate from a standstill to full speed, most minecarts need seven powered rails (a minecart with furnace has a lower top speed). After a certain number of rails, the minecart begins slowing down. This slowdown can be negated using a powered rail. A certain number of rails followed by a single powered rail can then be repeated indefinitely to maintain full speed with the minimum amount of powered rails.

Minecart type Initial maximum rails at full speed Subsequent maximums
Empty minecart and minecart with TNT 7 3
Minecart with entity 112 Alternates between 38 and 26
Minecart with chest and minecart with hopper 85 20, then 29 onward

For example, a minecart with an entity would require 112 rails, then 1 powered rail, then 38 rails, then 1 powered rail, then 26 rails, then 1 powered rail, then 38 rails, etc. Note that these rails can go in any direction: going 112 rails diagonally would still require a powered rail.

A minecart with no rider at full speed can climb 10 blocks on an unpowered rail. This suggests that a powered rail is needed at a height of only 10 blocks to keep a cart climbing. However, the cart slows so much that it can reach only another 5 blocks high with 2 lengths of powered rails starting at 9 blocks high. The minimum number of powered rails to keep the cart climbing constantly is 3 every 6 blocks.

Minecarts carrying entities, or minecarts with chests, have more momentum and so climb higher than empty minecarts. With a rider, a minecart can climb at most 24 blocks before stopping and needing powered rails to go higher.

Mob behavior

In Java Edition, most mobs avoid walking on rails,[2] but they ignore rails when they are already on them. Jumping mobs like slimes, frogs[3], and goats can jump onto rails, but frogs and goats do not walk onto rails. Aquatic creatures like guardians, tadpoles, and fish that flop around on land can flop onto rails. Parrots can land on rails and endermen can teleport onto rails, although they do not walk onto them. In pursuit of their targets, zombies may push other mobs onto the rails. The only mobs that freely walk onto rails are spiders, cave spiders, and wardens.

Piston interactivity

Rails can be pushed by pistons, and can be pulled by sticky pistons. However, a rail breaks and drops as an item when it becomes unsupported as a result of being moved.

Sounds

Java Edition:

BlockSprite block-of-gold.png: Sprite image for block-of-gold in Minecraft metal sound type
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitchAttenuation
distance
​Block brokenBlocksOnce the block has brokenblock.metal.breaksubtitles.block.generic.break​1.01.216
​Block placed​[until: JE 26.4]BlocksWhen the block is placedblock.metal.placesubtitles.block.generic.place​1.01.216
​Block breakingBlocksWhile the block is in the process of being brokenblock.metal.hitsubtitles.block.generic.hit​0.250.7516
​Something falls on a blockEntity-DependentFalling on the block with fall damageblock.metal.fallsubtitles.block.generic.fall​0.51.2516
​FootstepsEntity-DependentWalking on the blockblock.metal.stepsubtitles.block.generic.footsteps​0.151.516

Bedrock Edition:

BlockSprite block-of-gold.png: Sprite image for block-of-gold in Minecraft metal sound type
SoundClosed captionsSourceDescriptionIdentifierTranslation keyVolumePitch
​Block brokenBlocksOnce the block has brokendig.stonesubtitles.block.generic.break​1.01.1–1.2
​Block placedBlocksWhen the block is placeduse.stonesubtitles.block.generic.place​1.01.2–1.25
​Block breakingBlocksWhile the block is in the process of being brokenhit.stonesubtitles.block.generic.hit​0.30.75
​FootstepsPlayersFalling on the block with fall damagefall.stonesubtitles.block.generic.footsteps​0.41.0
​FootstepsPlayersWalking on the blockstep.stonesubtitles.block.generic.footsteps​0.351.0
​FootstepsBlocksJumping from the blockjump.stonesubtitles.block.generic.footsteps​0.121.0
​FootstepsBlocksFalling on the block without fall damageland.stonesubtitles.block.generic.footsteps​0.221.0

Data values

ID

Java Edition:

NameIdentifierFormBlock tagsItem tags Translation key
BlockSprite rail.png: Sprite image for rail in Minecraft RailrailBlock & Itemprevent_mob_spawning_inside
rails
rails block.minecraft.rail

Bedrock Edition:

NameIdentifierNumeric ID FormItem ID[i 1] Translation key
BlockSprite rail.png: Sprite image for rail in Minecraft Railrail66Block & Giveable Item[i 2]Identical[i 3] tile.rail.name
  1. ↑ ID of block's direct item form, which is used in savegame files and addons.
  2. ↑ Available with /give command.
  3. ↑ The block's direct item form has the same ID as the block.

Block states

See also: Block states

Java Edition:

Name Default value Allowed values Description
shapenorth_south east_west
north_east
north_south
north_west
south_east
south_west
The two directions a rail connects to.
For example, a south_east rail is a curved rail that connects to the south and to the east.
ascending_east
ascending_north
ascending_south
ascending_west
A rail that ascends toward the direction noted.
For example, an ascending_west rail is a straight rail that goes upward from the east toward the west.
waterloggedfalsetrue
false
Whether or not there's water in the same place as this rail.

Bedrock Edition:

NameMetadata Bits Default value Allowed valuesValues for
Metadata Bits
Description
rail_direction0x1
0x2
0x4
0x8
0 00Straight rail connecting to the north and south.
11Straight rail connecting to the east and west.
22Sloped rail ascending to the east.
33Sloped rail ascending to the west.
44Sloped rail ascending to the north.
55Sloped rail ascending to the south.
66Curved rail connecting to the south and east.
77Curved rail connecting to the south and west.
88Curved rail connecting to the north and west.
99Curved rail connecting to the north and east.

Achievements

IconAchievementIn-game descriptionActual requirements (if different)Gamerscore earnedTrophy type (PS)
PS4Other
On A RailTravel by minecart to a point at least 500m in a single direction from where you started.Travel by minecart 500 blocks in a straight line away from the player's starting point.40Gold

Videos

History

Java Edition

Java Edition Infdev
20100618 Added rails in the first "Seecret Friday Update" to Infdev.
20100624 Sloped rails are currently being dropped if the block on the side was destroyed.
Java Edition Alpha
v1.2.0? The textures of rails and curved rails have been changed slightly.
Java Edition Beta
1.6Test Build 3 Before this update, parallel rail lines would be used to create minecart boosters.
1.8Pre-release Rails are now found in the new mineshaft chests.
Java Edition
1.0.0Beta 1.9 Prerelease Rails are now destroyed by snowfall (bug).
Beta 1.9 Prerelease 4 Some rail behavior is now affected following the change of the south-west rule to south-east rule.
Beta 1.9 Prerelease 6 Rails are now broken faster using a pickaxe.
1.3.112w25a Rails can now be placed on upside-down slabs and stairs.
1.513w04a Mobs no longer walk over rails, if they are not currently standing on one.
1.814w04a If a rail is set to render as the block inside of a minecart via commands or map editing, it now appears as this (previously it would be entirely invisible).
1.915w38a All sloped rail types' hitbox heights have been decreased from 10 pixels of a block to about 2.5 pixels of a block.
15w44a The average yield from chest minecarts in mineshafts has been increased by more than 20 times.
15w46a Mobs no longer spawn on rails.
1.1016w21a All sloped rail types' hitbox heights have been increased from about 2.5 pixels of a block to a full block.
1.1116w32b All sloped rail types' hitbox heights have been decreased from a full block to a half block.
16w39a Rails now generate in woodland mansions.
1.1418w43a The texture of rails has been changed.
19w12b Rails can now be placed on glass, ice, glowstone and sea lanterns.
1.1519w39a Placing a new, unconnected section of rails now orients them in the direction the player is facing, rather than always north-south.
October 22, 2020 A leaked screenshot was accidentally posted in a bug report that said "waterlogged-rail", which was later removed.
1.1620w09a Sloped rails are affected by directional shading.
1.1720w45a All rail types can now be waterlogged.
Rails are no longer swept away by water.
1.1922w13a Wardens can now pass over rails.[4]
1.21.625w15a Sloped rails are no longer affected by directional shading.

Bedrock Edition

Pocket Edition Alpha
v0.8.0build 1 Added rails.
build 2 Rails are now craftable.
v0.9.0build 1 Rails now generate in mineshafts.
v0.14.0build 1 Rails can now be found in mineshaft chests.
Pocket Edition
1.1.0alpha 1.1.0.0 Rails now generate in woodland mansions.
Bedrock Edition
1.4.0beta 1.2.20.1 Rails can now be placed underwater.
1.7.0beta 1.7.0.2 Rails are once again broken by flowing water. Previously it flowed through the rails.
1.10.0beta 1.10.0.3 The texture of rails has been changed.
26.10Preview 26.10.21 Zombie horses no longer avoid walking on rails, making mobs avoiding rails remaining a Java Edition exclusive.

Legacy Console Edition

Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU1CU11.001.001.00Patch 11.0.1 Added rails.
TU19CU71.121.121.12 Mobs no longer walk over rails, if they are not currently standing on one.
TU46CU361.381.381.38Patch 15 Mobs no longer spawn on rails.
All sloped rail types' hitbox heights have been increased from 10 pixels of a block to a full block.
TU54CU441.521.521.52Patch 241.0.4 All sloped rail types' hitbox heights have been decreased from a full block to a half block.
Rails now generate in woodland mansions.
TU69 1.761.761.76Patch 38 All types of rails can now be waterlogged and are no longer destroyed by flowing water. Instead it flows right through them.
1.90 The texture of rails has been changed.

New Nintendo 3DS Edition

Data history

Java Edition
1.814w10a Rails with numerical metadata variants 10 to 15, which are inaccessible through normal gameplay or even commands and as such require the use of external editors to exist, now have no model . Their appearances prior to this point used the south east curved rail model.
14w25a Rails are now defined via block states rather than by numerical metadata. Prior to this version, the numerical metadata variants of the rail were as follows:
DV Description
BlockSprite rail.png: Sprite image for rail in Minecraft 0 North-south
BlockSprite rail.png: Sprite image for rail in Minecraft 1 East-west
BlockSprite rail.png: Sprite image for rail in Minecraft 2 Ascending east
BlockSprite rail.png: Sprite image for rail in Minecraft 3 Ascending west
BlockSprite rail.png: Sprite image for rail in Minecraft 4 Ascending north
BlockSprite rail.png: Sprite image for rail in Minecraft 5 Ascending south
BlockSprite rail.png: Sprite image for rail in Minecraft 6 Curved south-east
BlockSprite rail.png: Sprite image for rail in Minecraft 7 Curved south-west
BlockSprite rail.png: Sprite image for rail in Minecraft 8 Curved north-west
BlockSprite rail.png: Sprite image for rail in Minecraft 9 Curved north-east
BlockSprite missingno.png: Sprite image for missingno in Minecraft 10-15 Inaccessible - behavior unknown
14w26a Rails with metadata values 10 to 15 have been completely removed from the game.
1.1317w47a Prior to The Flattening, this block's numeral ID was 66.

Issues

Issues relating to "Rail" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

  • When walking on a block that has a rail on top, a player will hear the sound of the block they are walking on, but if they jump (while still walking), they hear the sound of the rail itself.[5]
  • Rails are narrow gauge with a controversial gauge value (the gauge value is the distance between the rails) that may be 8 pixels (500mm) between the innermost edges of the rails, 10 pixels (625mm) between the two lighter sections (which may be intended to be the raised section), 632 mm (approx. 2-foot), or 750mm (approx. 2-foot 5-inch).
  • A chest of rails has a total length of 64×27 = 1728 meters, which is slightly more than 1 mile (1.074 miles, 0.933 nautical miles).
  • Rails do not touch the block they are placed on. The flat texture can actually be seen to hover over their supporting block.

Renders

Screenshots

In other media

See also

References

  1. ↑ This is caused by the way rails update when given a redstone signal. A rail's preference inverts when a redstone signal is applied, and then its direction is updated to be the most preferred state. This can easily be observed when placing a rail on a redstone block with a 4-way junction compared to a non-powered block.
  2. ↑ MC-33359 – Mobs are unable to cross minecart rails – resolved as "Works As Intended".
  3. ↑ MC-263494 – Frogs jump over rails and sometimes land on them – resolved as "Works As Intended".
  4. ↑ MC-249642 – Wardens can't pass over rails – resolved as "Fixed".
  5. ↑ MC-1691 – Sprinting / falling on level 1 and 2 snow, lily pads and carpet use the block below for the particles
Advertisement Remove ads with Premium →

More in Transparent blocks

View all 33 →
LecternLecternA lectern is a block used to display a book and quill or written book for reading. Turning a page triggers a redstone pulse. It also serves as a…Monster SpawnerMonster SpawnerA monster spawner is a type of spawner found in a variety of structures. It constantly summons instances of the mob displayed within it as long as a…Ominous VaultOminous VaultAn ominous vault is a type of vault found in trial chambers. It ejects valuable loot when unlocked using an ominous trial key and is the only source of…Other Portal (block)Other Portal (block)An other portal is a joke block exclusive to joke snapshot 23w13a_or_b. It was added as a reference to the Aether, a popular mod for Minecraft which added…ScaffoldingScaffoldingScaffolding is a climbable semi-solid block with a stable top platform and unique placement controls that simplify creating columns and bridges.…Stained GlassStained GlassStained glass is a dyed variant of the glass block.Tinted GlassTinted GlassTinted glass is a non-solid block that blocks light while being visually transparent.Trial SpawnerTrial SpawnerA trial spawner is a type of spawner found in trial chambers. It spawns mobs in waves, ejects consumable items and/or trial keys after they are all…

Related mods

Create: Steam 'n' Rails Create: Steam 'n' Rails Mod · 65.3M downloads Railcraft Railcraft Mod · 37.1M downloads Railcraft Reborn Railcraft Reborn Mod · 21M downloads Useful Railroads Useful Railroads Mod · 16.8M downloads
How to craft Rail
See the exact crafting recipe on a 3×3 grid, the ingredients and step-by-step instructions.
Crafting recipe Wiki home