Minecraft:Rail: Difference between revisions
More actions
imported>BDJP007301 No edit summary |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{For}} | {{MC/For}} | ||
{{Needs updating|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.}} | {{MC/Needs updating|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.}} | ||
{{Infobox block | {{Infobox block | ||
| image = Rail (NS).png | | image = Rail (NS).png | ||
| Line 16: | Line 16: | ||
A '''rail''' is a non-solid [[Minecraft:block]] that provides a path along which [[Minecraft:minecart]]s can travel, and can be placed either flat on the ground, as a ramp, or curved. | A '''rail''' is a non-solid [[Minecraft:block]] that provides a path along which [[Minecraft:minecart]]s 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 | A '''curved rail''' allows minecarts to turn corners, and can rotate to connect to a different rail line while powered. | ||
== Obtaining == | == Obtaining == | ||
=== Breaking === | === Breaking === | ||
The suitable tool to break a rail is a [[Minecraft:pickaxe]]. It will always drop itself when broken. | The suitable tool to break a rail is a [[Minecraft:pickaxe]]. It will always drop itself when broken. | ||
{{ | {{MC/Breaking row|horizontal=1|Rail|pickaxe}} | ||
=== Natural generation === | === Natural generation === | ||
Rails can be found naturally running along the floor in | 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 === | === Generated loot === | ||
{{LootChestItem|rail}} | {{MC/LootChestItem|rail}} | ||
=== Crafting === | === Crafting === | ||
| Line 42: | Line 42: | ||
== Usage == | == Usage == | ||
{{ | {{MC/See also|Tutorial:Minecarts}} | ||
A rail can be used as a track for minecarts to move along. | A rail can be used as a track for minecarts to move along. | ||
=== Placement === | === Placement === | ||
To place a rail, {{ | To place a rail, {{MC/Control|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, [[Minecraft:hopper]], top [[Minecraft:Slab#Placement|slab]], upside-down [[Minecraft:Stairs#Placement|stairs]], or top [[Minecraft:Trapdoor#Properties|trapdoor]]. A full list of these blocks is [https://joakimthorsen.github.io/MCPropertyEncyclopedia/?selection=variants,top_face_has_rim&filter=(top_face_has_rim:No)# 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 {{frac|1|16}} blocks above the ground, with an | Rails visually float {{frac|1|16}} blocks above the ground, with an outline {{frac|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. | 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 | 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. | 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 {{ | * If there are no other rails adjacent, or if placed beside an existing rail line of any type, then {{MC/In|bedrock}} the new rail orients itself as a straight north-south rail, and {{MC/In|java}} 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. | * 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 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. | ||
| Line 101: | Line 101: | ||
[[File:Track intersections.png|left|thumb]] | [[File:Track intersections.png|left|thumb]] | ||
[[File:T-intersection-south-west.png|right|thumb]] | [[File:T-intersection-south-west.png|right|thumb]] | ||
{{ | {{MC/Main|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 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. | 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. | ||
{{-}} | {{MC/-}} | ||
==== Downhill rule ==== | ==== Downhill rule ==== | ||
[[File:Downhill rule.png|thumb]] | [[File:Downhill rule.png|thumb]] | ||
At non-curve rail junctions, minecarts always travel downhill if they can, ignoring the south-east rule. | At non-curve rail junctions, minecarts always travel downhill if they can, ignoring the south-east rule. | ||
{{-}} | {{MC/-}} | ||
==== Ramp clearance & one-way effect ==== | ==== Ramp clearance & one-way effect ==== | ||
[[File:Minecart Block Passing Effect.png|thumb]] | [[File:Minecart Block Passing Effect.png|thumb]] | ||
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. | 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. | ||
{{-}} | {{MC/-}} | ||
==== Curved rail interactions ==== | ==== Curved rail interactions ==== | ||
| Line 124: | Line 124: | ||
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. | 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. | ||
{{-}} | {{MC/-}} | ||
==== Minecart speeds ==== | ==== Minecart speeds ==== | ||
To accelerate from a standstill to full speed, most minecarts need seven powered rails (a | 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. | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 142: | Line 142: | ||
| Alternates between 38 and 26 | | Alternates between 38 and 26 | ||
|- | |- | ||
| | | Minecart with chest and minecart with hopper | ||
| 85 | | 85 | ||
| 20, then 29 onward | | 20, then 29 onward | ||
| Line 154: | Line 154: | ||
=== Mob behavior === | === Mob behavior === | ||
{{ | {{MC/In|java}}, most mobs avoid walking on rails,<ref>{{bug|MC-33359||Mobs are unable to cross minecart rails|WAI}}</ref> but they ignore rails when they are already on them. Jumping mobs like slimes, frogs<ref>{{bug|MC-263494||Frogs jump over rails and sometimes land on them|WAI}}</ref>, and goats can jump onto rails, but frogs and goats do not walk onto rails. [[Minecraft: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 [[Minecraft:warden]]s. | ||
=== Piston interactivity === | === Piston interactivity === | ||
A rail can be pushed by a [[Minecraft:piston]], and can be pulled by a | A rail can be pushed by a [[Minecraft:piston]], and can be pulled by a sticky piston. However, the rail breaks and drops as an item when it is unsupported due to being moved. | ||
== Sounds == | == Sounds == | ||
{{Sound table/Block/Metal}} | {{MC/Sound table/Block/Metal}} | ||
== Data values == | == Data values == | ||
=== ID === | === ID === | ||
{{ | {{MC/Edition|java}}: | ||
{{ID table | {{ID table | ||
|edition=java | |edition=java | ||
| Line 178: | Line 178: | ||
|foot=1}} | |foot=1}} | ||
{{ | {{MC/Edition|bedrock}}: | ||
{{ID table | {{ID table | ||
|edition=bedrock | |edition=bedrock | ||
| Line 191: | Line 191: | ||
=== Block states === | === Block states === | ||
{{ | {{MC/See also|Block states}} | ||
{{ | {{MC/Edition|java}}: | ||
{{bst|shape|north_south | {{bst|shape|north_south | ||
|east_west,north_east,north_south,north_west,south_east,south_west|The two directions a rail connects to.<br>For example, a <code>south_east</code> rail is a curved rail that connects to the south and to the east. | |east_west,north_east,north_south,north_west,south_east,south_west|The two directions a rail connects to.<br>For example, a <code>south_east</code> rail is a curved rail that connects to the south and to the east. | ||
| Line 199: | Line 199: | ||
{{Bst|waterlogged|false|true,false|Whether or not there's water in the same place as this rail.|foot=1}} | {{Bst|waterlogged|false|true,false|Whether or not there's water in the same place as this rail.|foot=1}} | ||
{{ | {{MC/Edition|bedrock}}: | ||
{{bst|showaux=1|bits=0x1,0x2,0x4,0x8|rail_direction|0 | {{bst|showaux=1|bits=0x1,0x2,0x4,0x8|rail_direction|0 | ||
|0|Straight rail connecting to the north and south.| | |0|Straight rail connecting to the north and south.| | ||
| Line 214: | Line 214: | ||
== Achievements == | == Achievements == | ||
{{ | {{MC/Load achievements|On A Rail}} | ||
== Videos == | == Videos == | ||
<div style="text-align:center">{{ | <div style="text-align:center">{{MC/Yt|ILy1jrm_GUw}}</div> | ||
== History == | == History == | ||
{{ | {{MC/Info needed section|Did 1.8 change the way rails were shaded? Or was this change made in the 1.15-1.16 era?}} | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java infdev}} | |{{MC/HistoryLine|java infdev}} | ||
|{{HistoryLine||20100618|[[File:Rail (NS) JE1.png|32px]] [[File:Rail (EW) JE1.png|32px]] [[File:Rail (NE) JE1.png|32px]] [[File:Rail (ES) JE1.png|32px]] [[File:Rail (SW) JE1.png|32px]] [[File:Rail (NW) JE1.png|32px]] [[File:Rail (Ns) JE1.png|32px]] [[File:Rail (nS) JE1.png|32px]] [[File:Rail (Ew) JE1.png|32px]] [[File:Rail (eW) JE1.png|32px]] Added rails in the first | |{{MC/HistoryLine||20100618|[[File:Rail (NS) JE1.png|32px]] [[File:Rail (EW) JE1.png|32px]] [[File:Rail (NE) JE1.png|32px]] [[File:Rail (ES) JE1.png|32px]] [[File:Rail (SW) JE1.png|32px]] [[File:Rail (NW) JE1.png|32px]] [[File:Rail (Ns) JE1.png|32px]] [[File:Rail (nS) JE1.png|32px]] [[File:Rail (Ew) JE1.png|32px]] [[File:Rail (eW) JE1.png|32px]] Added rails in the first "Seecret Friday Update" to Infdev.}} | ||
|{{HistoryLine||20100624|Sloped rails are currently being dropped if the block on the side was destroyed.}} | |{{MC/HistoryLine||20100624|Sloped rails are currently being dropped if the block on the side was destroyed.}} | ||
|{{HistoryLine|java alpha}} | |{{MC/HistoryLine|java alpha}} | ||
|{{HistoryLine||v1.2.0|dev=<nowiki>?</nowiki>|slink=:Category:Information needed requiring unarchived version|[[File:Rail (NS) JE2 BE1.png|32px]] [[File:Rail (EW) JE2 BE1.png|32px]] [[File:Rail (NE) JE2 BE1.png|32px]] [[File:Rail (ES) JE2 BE1.png|32px]] [[File:Rail (SW) JE2 BE1.png|32px]] [[File:Rail (NW) JE2 BE1.png|32px]] [[File:Rail (Ns) JE2 BE1.png|32px]] [[File:Rail (nS) JE2 BE1.png|32px]] [[File:Rail (Ew) JE2 BE1.png|32px]] [[File:Rail (eW) JE2 BE1.png|32px]] The textures of rails and curved rails have been changed slightly.}} | |{{MC/HistoryLine||v1.2.0|dev=<nowiki>?</nowiki>|slink=:Category:Information needed requiring unarchived version|[[File:Rail (NS) JE2 BE1.png|32px]] [[File:Rail (EW) JE2 BE1.png|32px]] [[File:Rail (NE) JE2 BE1.png|32px]] [[File:Rail (ES) JE2 BE1.png|32px]] [[File:Rail (SW) JE2 BE1.png|32px]] [[File:Rail (NW) JE2 BE1.png|32px]] [[File:Rail (Ns) JE2 BE1.png|32px]] [[File:Rail (nS) JE2 BE1.png|32px]] [[File:Rail (Ew) JE2 BE1.png|32px]] [[File:Rail (eW) JE2 BE1.png|32px]] The textures of rails and curved rails have been changed slightly.}} | ||
|{{HistoryLine|java beta}} | |{{MC/HistoryLine|java beta}} | ||
|{{HistoryLine||1.6|dev=Test Build 3|Before this update, parallel rail lines would be used to create | |{{MC/HistoryLine||1.6|dev=Test Build 3|Before this update, parallel rail lines would be used to create minecart boosters.}} | ||
|{{HistoryLine||1.8|dev=Pre-release|Rails are now found in the new | |{{MC/HistoryLine||1.8|dev=Pre-release|Rails are now found in the new mineshaft chests.}} | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease|Rails are now destroyed by | |{{MC/HistoryLine||1.0.0|dev=Beta 1.9 Prerelease|Rails are now destroyed by snowfall (bug).}} | ||
|{{HistoryLine|||dev=Beta 1.9 Prerelease 4|Some rail behavior is now affected following the change of the south-west rule to | |{{MC/HistoryLine|||dev=Beta 1.9 Prerelease 4|Some rail behavior is now affected following the change of the south-west rule to south-east rule.}} | ||
|{{HistoryLine|||dev=Beta 1.9 Prerelease 6|Rails are now broken faster using a [[Minecraft:pickaxe]].}} | |{{MC/HistoryLine|||dev=Beta 1.9 Prerelease 6|Rails are now broken faster using a [[Minecraft:pickaxe]].}} | ||
|{{HistoryLine||1.3.1|dev=12w25a|Rails can now be placed on upside-down [[Minecraft:slab]]s and [[Minecraft:stairs]].}} | |{{MC/HistoryLine||1.3.1|dev=12w25a|Rails can now be placed on upside-down [[Minecraft:slab]]s and [[Minecraft:stairs]].}} | ||
|{{HistoryLine||1.5|dev=13w04a|[[Minecraft:Mob]]s no longer walk over rails, if they are not currently standing on one.}} | |{{MC/HistoryLine||1.5|dev=13w04a|[[Minecraft:Mob]]s no longer walk over rails, if they are not currently standing on one.}} | ||
|{{HistoryLine||1.8|dev=14w04a|[[File:Rail (in minecart) 14w04a.png|32px]] [[File:Curved Rail (in minecart) 14w04a.png|32px]] If a rail is set to render as the block inside of a [[Minecraft:minecart]] via commands or map editing, it now appears as this (previously it would be entirely invisible).}} | |{{MC/HistoryLine||1.8|dev=14w04a|[[File:Rail (in minecart) 14w04a.png|32px]] [[File:Curved Rail (in minecart) 14w04a.png|32px]] If a rail is set to render as the block inside of a [[Minecraft:minecart]] via commands or map editing, it now appears as this (previously it would be entirely invisible).}} | ||
|{{HistoryLine||1.9|dev=15w38a|All sloped rail types' hitbox heights have been decreased from 10 pixels of a block to about 2.5 pixels of a block.}} | |{{MC/HistoryLine||1.9|dev=15w38a|All sloped rail types' hitbox heights have been decreased from 10 pixels of a block to about 2.5 pixels of a block.}} | ||
|{{HistoryLine|||dev=15w44a|The average yield from | |{{MC/HistoryLine|||dev=15w44a|The average yield from chest minecarts in mineshafts has been increased by more than 20 times.}} | ||
|{{HistoryLine|||dev=15w46a|Mobs no longer spawn on rails.}} | |{{MC/HistoryLine|||dev=15w46a|Mobs no longer spawn on rails.}} | ||
|{{HistoryLine||1.10|dev=16w21a|All sloped rail types' hitbox heights have been increased from about 2.5 pixels of a block to a full block.}} | |{{MC/HistoryLine||1.10|dev=16w21a|All sloped rail types' hitbox heights have been increased from about 2.5 pixels of a block to a full block.}} | ||
|{{HistoryLine||1.11|dev=16w32b|All sloped rail types' hitbox heights have been decreased from a full block to a half block.}} | |{{MC/HistoryLine||1.11|dev=16w32b|All sloped rail types' hitbox heights have been decreased from a full block to a half block.}} | ||
|{{HistoryLine|||dev=16w39a|Rails now generate in | |{{MC/HistoryLine|||dev=16w39a|Rails now generate in woodland mansions.}} | ||
|{{HistoryLine||1.14|dev=18w43a|[[File:Rail (NS) JE3 BE2.png|32px]] [[File:Rail (EW) JE3 BE2.png|32px]] [[File:Rail (NE) JE3 BE2.png|32px]] [[File:Rail (ES) JE3 BE2.png|32px]] [[File:Rail (SW) JE3 BE2.png|32px]] [[File:Rail (NW) JE3 BE2.png|32px]] [[File:Rail (Ns) JE3 BE2.png|32px]] [[File:Rail (nS) JE3 BE2.png|32px]] [[File:Rail (Ew) JE3 BE2.png|32px]] [[File:Rail (eW) JE3 BE2.png|32px]] The texture of rails has been changed.}} | |{{MC/HistoryLine||1.14|dev=18w43a|[[File:Rail (NS) JE3 BE2.png|32px]] [[File:Rail (EW) JE3 BE2.png|32px]] [[File:Rail (NE) JE3 BE2.png|32px]] [[File:Rail (ES) JE3 BE2.png|32px]] [[File:Rail (SW) JE3 BE2.png|32px]] [[File:Rail (NW) JE3 BE2.png|32px]] [[File:Rail (Ns) JE3 BE2.png|32px]] [[File:Rail (nS) JE3 BE2.png|32px]] [[File:Rail (Ew) JE3 BE2.png|32px]] [[File:Rail (eW) JE3 BE2.png|32px]] The texture of rails has been changed.}} | ||
|{{HistoryLine|||dev=19w12b|Rails can now be placed on [[Minecraft:glass]], [[Minecraft:ice]], [[Minecraft:glowstone]] and | |{{MC/HistoryLine|||dev=19w12b|Rails can now be placed on [[Minecraft:glass]], [[Minecraft:ice]], [[Minecraft:glowstone]] and sea lanterns.}} | ||
|{{HistoryLine||1.15|dev=19w39a|Placing a new, unconnected section of rails now orients them in the direction the | |{{MC/HistoryLine||1.15|dev=19w39a|Placing a new, unconnected section of rails now orients them in the direction the player is facing, rather than always north-south.}} | ||
|{{HistoryLine||October 22, 2020|link=https://web.archive.org/web/20201025215822/https://bugs.mojang.com/browse/MC-202638|A leaked screenshot was accidentally posted in a bug report that said "waterlogged-rail", which was later removed.}} | |{{MC/HistoryLine||October 22, 2020|link=https://web.archive.org/web/20201025215822/https://bugs.mojang.com/browse/MC-202638|A leaked screenshot was accidentally posted in a bug report that said "waterlogged-rail", which was later removed.}} | ||
|{{HistoryLine||1.16|dev=20w09a|[[File:Rail (Ns) JE4.png|32px]] [[File:Rail (nS) JE4.png|32px]] [[File:Rail (Ew) JE4.png|32px]] [[File:Rail (eW) JE4.png|32px]] Rails are affected by ambient occlusion.}} | |{{MC/HistoryLine||1.16|dev=20w09a|[[File:Rail (Ns) JE4.png|32px]] [[File:Rail (nS) JE4.png|32px]] [[File:Rail (Ew) JE4.png|32px]] [[File:Rail (eW) JE4.png|32px]] Rails are affected by ambient occlusion.}} | ||
|{{HistoryLine||1.17|dev=20w45a|All rail types can now be | |{{MC/HistoryLine||1.17|dev=20w45a|All rail types can now be waterlogged. | ||
|Rails are no longer swept away by water.}} | |Rails are no longer swept away by water.}} | ||
|{{HistoryLine||1.19|dev=22w13a|[[Minecraft:Warden]]s can now pass over rails.<ref>{{bug|MC-249642||Wardens can't pass over rails|F}}</ref>}} | |{{HistoryLine||1.19|dev=22w13a|[[Minecraft:Warden]]s can now pass over rails.<ref>{{bug|MC-249642||Wardens can't pass over rails|F}}</ref>}} | ||
|{{HistoryLine||1.21.6|dev=25w15a|[[File:Rail (Ns) JE3 BE2.png|32px]] [[File:Rail (nS) JE3 BE2.png|32px]] [[File:Rail (Ew) JE3 BE2.png|32px]] [[File:Rail (eW) JE3 BE2.png|32px]] Rails are no longer affected by ambient occlusion.}} | |{{MC/HistoryLine||1.21.6|dev=25w15a|[[File:Rail (Ns) JE3 BE2.png|32px]] [[File:Rail (nS) JE3 BE2.png|32px]] [[File:Rail (Ew) JE3 BE2.png|32px]] [[File:Rail (eW) JE3 BE2.png|32px]] Rails are no longer affected by ambient occlusion.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|pocket alpha}} | |{{MC/HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.8.0|dev=build 1|[[File:Rail (NS) JE2 BE1.png|32px]] Added rails.}} | |{{MC/HistoryLine||v0.8.0|dev=build 1|[[File:Rail (NS) JE2 BE1.png|32px]] Added rails.}} | ||
|{{HistoryLine|||dev=build 2|Rails are now craftable.}} | |{{MC/HistoryLine|||dev=build 2|Rails are now craftable.}} | ||
|{{HistoryLine||v0.9.0|dev=build 1|Rails now generate in | |{{MC/HistoryLine||v0.9.0|dev=build 1|Rails now generate in mineshafts.}} | ||
|{{HistoryLine||v0.14.0|dev=build 1|Rails can now be found in mineshaft [[Minecraft:chest]]s. }} | |{{MC/HistoryLine||v0.14.0|dev=build 1|Rails can now be found in mineshaft [[Minecraft:chest]]s. }} | ||
|{{HistoryLine|pocket}} | |{{MC/HistoryLine|pocket}} | ||
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|Rails now generate in | |{{MC/HistoryLine||1.1.0|dev=alpha 1.1.0.0|Rails now generate in woodland mansions.}} | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.4.0|dev=beta 1.2.20.1|Rails can now be placed underwater.}} | |{{MC/HistoryLine||1.4.0|dev=beta 1.2.20.1|Rails can now be placed underwater.}} | ||
|{{HistoryLine||1.7.0|dev=beta 1.7.0.2|Rails are once again broken by flowing water. Previously it flowed through the rails.}} | |{{MC/HistoryLine||1.7.0|dev=beta 1.7.0.2|Rails are once again broken by flowing water. Previously it flowed through the rails.}} | ||
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Rail.png|32px]] The texture of rails has been changed.}} | |{{MC/HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Rail.png|32px]] The texture of rails has been changed.}} | ||
|{{HistoryLine||26.10|dev=Preview 26.10.21|Zombie horses no longer avoid walking on rails, making mobs avoiding rails remaining a {{JE}} exclusive.}} | |{{HistoryLine||26.10|dev=Preview 26.10.21|Zombie horses no longer avoid walking on rails, making mobs avoiding rails remaining a {{MC/JE}} exclusive.}} | ||
}} | }} | ||
=== Legacy Console Edition === | === Legacy Console Edition === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|console}} | |{{MC/HistoryLine|console}} | ||
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Rail (NS) JE2 BE1.png|32px]] Added rails.}} | |{{MC/HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Rail (NS) JE2 BE1.png|32px]] Added rails.}} | ||
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[Minecraft:Mob]]s no longer walk over rails, if they are not currently standing on one.{{check version}}}} | |{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[Minecraft:Mob]]s no longer walk over rails, if they are not currently standing on one.{{check version}}}} | ||
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|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.}} | |{{MC/HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|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.}} | ||
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|All sloped rail types' hitbox heights have been decreased from a full block to a half block.|Rails now generate in | |{{MC/HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.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.}} | ||
|{{HistoryLine||xbox=TU69|xbone=none|ps3=1.76|psvita=1.76|ps4=1.76|wiiu=Patch 38|switch=none|All types of rails can now be | |{{MC/HistoryLine||xbox=TU69|xbone=none|ps3=1.76|psvita=1.76|ps4=1.76|wiiu=Patch 38|switch=none|All types of rails can now be waterlogged and are no longer destroyed by flowing water. Instead it flows right through them.}} | ||
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Rail.png|32px]] The texture of rails has been changed.}} | |{{MC/HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Rail.png|32px]] The texture of rails has been changed.}} | ||
}} | }} | ||
=== ''New Nintendo 3DS Edition'' === | === ''New Nintendo 3DS Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|new 3ds}} | |{{MC/HistoryLine|new 3ds}} | ||
|{{HistoryLine||0.1.0|[[File:Rail (NS) JE2 BE1.png|32px]] Added rails.}} | |{{MC/HistoryLine||0.1.0|[[File:Rail (NS) JE2 BE1.png|32px]] Added rails.}} | ||
}}<gallery> | }}<gallery> | ||
File:Beta Roller Coaster.png|A roller coaster. | File:Beta Roller Coaster.png|A roller coaster. | ||
| Line 292: | Line 292: | ||
=== Data history === | === Data history === | ||
{{HistoryTable| | {{HistoryTable| | ||
{{HistoryLine|java}} | {{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.8|dev=14w10a|Rails with | |{{MC/HistoryLine||1.8|dev=14w10a|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 [[File:Missing Model JE2.png|32px]]. Their appearances prior to this point used the south east curved rail model.}} | ||
|{{HistoryLine|||dev=14w25a|Rails are now defined via | |{{HistoryLine|||dev=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: | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|North-south}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|East-west}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Ascending east}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Ascending west}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Ascending north}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Ascending south}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Curved south-east}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Curved south-west}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Curved north-west}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=rail|Curved north-east}} | ||
{{ | {{MC/Dvt|spritetype=block|sprite=missingno|dv=10-15|Inaccessible - behavior unknown|foot=1}}}} | ||
|{{HistoryLine|||dev=14w26a|Rails with metadata values 10 to 15 have been completely removed from the game.{{ | |{{HistoryLine|||dev=14w26a|Rails with metadata values 10 to 15 have been completely removed from the game.{{MC/Verify|MCDF wiki says that invalid metadata acts as air until 1.9, can this be checked?}}}} | ||
|{{HistoryLine||1.13|dev=17w47a|Prior to | |{{MC/HistoryLine||1.13|dev=17w47a|Prior to ''The Flattening'', this block's numeral ID was 66.}} | ||
}} | }} | ||
== Issues == | == Issues == | ||
{{ | {{MC/Issue list}} | ||
== Trivia == | == Trivia == | ||
* When walking on a [[Minecraft:block]] that has a rail on top, a | * When walking on a [[Minecraft: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.<ref>{{bug|MC-1691||Sprinting / falling on level 1 and 2 snow, lily pads and carpet use the block below for the particles}}</ref> | ||
* 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). | * 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). | * 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). | ||
| Line 334: | Line 334: | ||
sticky piston rails.gif|An example of sticky piston use with rails. | sticky piston rails.gif|An example of sticky piston use with rails. | ||
Minecraftrollercoaster.jpg|An example of how to use rails as a roller coaster. | Minecraftrollercoaster.jpg|An example of how to use rails as a roller coaster. | ||
RailBug.png|A randomly generated misplaced rail found in a | RailBug.png|A randomly generated misplaced rail found in a mineshaft. | ||
Floating rails.png|Three more floating rails in a mineshaft. | Floating rails.png|Three more floating rails in a mineshaft. | ||
Minecraft train.png|[[Minecraft:Villager]]s riding [[Minecraft:minecart]]s with rails below them. | Minecraft train.png|[[Minecraft:Villager]]s riding [[Minecraft:minecart]]s with rails below them. | ||
| Line 342: | Line 342: | ||
=== In other media === | === In other media === | ||
<gallery> | <gallery> | ||
File:AYIB Mastered.jpeg| | File:AYIB Mastered.jpeg|Kai [[Minecraft:Crafter|crafting]] a rail, in ''A year in blocks''. | ||
Cinematic rails.png|Rails in {{ | Cinematic rails.png|Rails in {{MC/Amcm}}. | ||
</gallery> | </gallery> | ||
== See also == | == See also == | ||
* {{ | * {{MC/Blocklink|Powered rail}} | ||
* {{ | * {{MC/Blocklink|Activator rail}} | ||
* {{ | * {{MC/Blocklink|Detector rail}} | ||
== References == | == References == | ||
{{ | {{MC/Reflist}} | ||
== Navigation == | == Navigation == | ||
{{Navbox redstone|components}} | {{MC/Navbox redstone|components}} | ||
{{Navbox blocks|Utility}} | {{MC/Navbox blocks|Utility}} | ||
[[Category:Non-solid blocks]] | [[Category:Non-solid blocks]] | ||
| Line 363: | Line 363: | ||
[[Category:Generated structure blocks]] | [[Category:Generated structure blocks]] | ||
cs:Kolej | |||
de:Schiene | |||
es:Raíl | |||
fr:Rails | |||
hu:Sín | |||
it:Binario | |||
ja:レール | |||
ko:레일 | |||
lzh:軌 | |||
nl:Spoor | |||
pl:Tory | |||
pt:Trilho | |||
ru:Рельсы | |||
uk:Рейки | |||
zh:铁轨 | |||
Latest revision as of 20:52, 9 April 2026
- REDIRECT Template:Update
Template:Infobox block A rail is a non-solid Minecraft:block that provides a path along which Minecraft: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 Minecraft:pickaxe. It will always drop itself when broken. Script error: No such module "breaking row".
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
Script error: No such module "lootChest".
Crafting
Usage
{{#vardefine:params|0 }}Template:Hatnote A rail can be used as a track for minecarts to move along.
Placement
To place a rail, {{#vardefine: control | right click on mouse or left trigger on gamepad }}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, Minecraft: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 Template:Frac blocks above the ground, with an outline Template:Frac 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 Template:Editions the new rail orients itself as a straight north-south rail, and in Template:Editions 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.
-
T-junction before filling in rails
-
T-junction after filling in rails
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.
-
Before placing the top block.
-
Top block is placed as curve.
-
Showing cart getting buried.
Some rail placements produce rail layouts that cause minecarts to collide and enter blocks.
-
Minecarts always buried
-
Minecarts get through
- 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.
-
Curve controls minecart passage
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.<ref>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.</ref>
Separate rails are laid adjacent, but at the next level, lower or higher rails can sometimes cause rail reorientation.
Minecart behavior
South-east rule
{{#vardefine:params|0 }}Template:Hatnote 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
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 Minecraft:minecart and Minecraft: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 Template:Editions, most mobs avoid walking on rails,<ref>Template:Bug</ref> but they ignore rails when they are already on them. Jumping mobs like slimes, frogs<ref>Template:Bug</ref>, and goats can jump onto rails, but frogs and goats do not walk onto rails. Minecraft: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 Minecraft:wardens.
Piston interactivity
A rail can be pushed by a Minecraft:piston, and can be pulled by a sticky piston. However, the rail breaks and drops as an item when it is unsupported due to being moved.
Sounds
Data values
ID
Template:!((Java EditionTemplate:))!: Template:ID table
Template:!((Bedrock EditionTemplate:))!: Template:ID table
Block states
{{#vardefine:params|0 }}Template:Hatnote
Template:!((Java EditionTemplate:))!: Template:Bst Template:Bst
Template:!((Bedrock EditionTemplate:))!: Template:Bst
Achievements
Script error: No such module "Achievement".
Videos
- REDIRECT Template:YouTube
History
- REDIRECT Template:Incomplete section
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
-
A roller coaster.
Data history
Issues
Script error: No such module "Issue list".
Trivia
- When walking on a Minecraft: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.<ref>Template:Bug</ref>
- 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.
Gallery
Renders
-
North south
-
East west
-
North east
-
East straight
-
South west
-
North west
-
An example of a rail line with curves and ramps.
Screenshots
-
An example of sticky piston use with rails.
-
An example of how to use rails as a roller coaster.
-
A randomly generated misplaced rail found in a mineshaft.
-
Three more floating rails in a mineshaft.
-
Minecraft:Villagers riding Minecraft:minecarts with rails below them.
-
A railroad stop without any Minecraft:redstone switching mechanisms, based purely on the one-way curved rail behavior.
In other media
-
Kai crafting a rail, in A year in blocks.
-
Rails in
- REDIRECT Template:AMCM
See also
- redirect Template:blockLink
- redirect Template:blockLink
- redirect Template:blockLink
References
<references group="">
</references>
| |||||||
|
| |||||||
Template:Article otherTemplate:Article other
cs:Kolej de:Schiene es:Raíl fr:Rails hu:Sín it:Binario ja:レール ko:레일 lzh:軌 nl:Spoor pl:Tory pt:Trilho ru:Рельсы uk:Рейки zh:铁轨