Minecraft:Detector Rail: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Infobox block | {{Infobox block | ||
| image = Detector Rail.png | | image = Detector Rail.png | ||
| Line 17: | Line 16: | ||
=== Breaking === | === Breaking === | ||
The suitable tool to break detector rail is [[Minecraft:pickaxe]]. | The suitable tool to break detector rail is [[Minecraft:pickaxe]]. | ||
{{ | {{breaking row|horizontal=1|Detector Rail|Pickaxe}} | ||
Detector rail drops itself when it's destroyed. | Detector rail drops itself when it's destroyed. | ||
=== Generated loot === | === Generated loot === | ||
{{ | {{LootChestItem|detector-rail}} | ||
=== Crafting === | === Crafting === | ||
| Line 38: | Line 37: | ||
== Usage == | == Usage == | ||
To place a detector rail, {{ | To place a detector rail, {{control|use}} a detector rail item while pointing at a surface facing the space the detector rail should occupy. | ||
A detector rail can be placed on top of any 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 compatible blocks can be found [https://joakimthorsen.github.io/MCPropertyEncyclopedia/?selection=variants,top_face_has_rim&filter=(top_face_has_rim:No)# here]. | A detector rail can be placed on top of any block whose top face has a rim around the edge, such as any [[Minecraft: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 compatible blocks can be found [https://joakimthorsen.github.io/MCPropertyEncyclopedia/?selection=variants,top_face_has_rim&filter=(top_face_has_rim:No)# here]. | ||
If a detector rail is [[Minecraft:Block update|updated]] while on an opened top trapdoor, the rail breaks and drops as an item. Placing a minecart on a detector rail on top of a closed and unpowered trapdoor opens the trapdoor and updates the rail, causing the detector rail to break. If the top trapdoor is powered and closed when the minecart is placed, the trapdoor does not open so the rail does not break. The minecart on the detector rail then powers the trapdoor, meaning the external power source can be removed without causing the trapdoor to change state and break the rail. | If a detector rail is [[Minecraft:Block update|updated]] while on an opened top trapdoor, the rail breaks and drops as an item. Placing a minecart on a detector rail on top of a closed and unpowered trapdoor opens the trapdoor and updates the rail, causing the detector rail to break. If the top trapdoor is powered and closed when the minecart is placed, the trapdoor does not open so the rail does not break. The minecart on the detector rail then powers the trapdoor, meaning the external power source can be removed without causing the trapdoor to change state and break the rail. | ||
When placed, a detector rail configures itself to line up with any adjacent [[Minecraft:rail]]s (including activator | When placed, a detector rail configures itself to line up with any adjacent [[Minecraft:rail]]s (including [[Minecraft:activator rail]]s, [[Minecraft:powered rail]]s, and other [[Minecraft:detector rail]]s), as well as adjacent rails one block up. If there are two adjacent rails on non-opposite sides, or three or more adjacent rails, a detector rail lines up in the east-west direction. If there are no adjacent rails, a detector rail lines up in the north-south direction (but if a rail is later placed to the east or west, the detector rail re-orients itself in the east-west direction even if it is already connected to another rail to the north or south). If a rail it would line up with is one block up, a detector rail slants upward toward it (with multiple options to slant upward to, a detector rail "prefers", in order: west, east, south, and north). Other configurations can be created by placing and removing various rails. | ||
[[Minecraft:Mob]]s avoid walking across a detector rail (or other rails), but can be pushed onto them. | [[Minecraft:Mob]]s avoid walking across a detector rail (or other rails), but can be pushed onto them. | ||
| Line 51: | Line 50: | ||
=== Rail === | === Rail === | ||
{{ | {{main|Rail}} | ||
Detector rails (and other rails) act as "roads" for [[Minecraft:minecart]]s. A minecart that enters a detector rail's space from either end of the detector rail continues to move, losing only a little velocity (which can then be increased again with powered | Detector rails (and other rails) act as "roads" for [[Minecraft:minecart]]s. A minecart that enters a detector rail's space from either end of the detector rail continues to move, losing only a little velocity (which can then be increased again with [[Minecraft:powered rail]]s). A minecart that enters a detector rail's space from the side turns east or south (depending on the detector rail's orientation), or in the downward direction for a slanted detector rail. | ||
=== Redstone component === | === Redstone component === | ||
[[File:Comparitor signal strength minecart.png|thumb|Example for signal strength of a full minecart (right) and a half-full one (left)]] | [[File:Comparitor signal strength minecart.png|thumb|Example for signal strength of a full minecart (right) and a half-full one (left)]] | ||
{{ | {{see also|Redstone circuit}} | ||
A detector rail becomes [[Minecraft:Detector Rail#Block states|powered]] when any part of any minecart's bounding box comes into contact with it. Every 20th [[Minecraft:Tick|game tick]] after the rail first becomes powered, it checks whether any minecart is still present and depowers if there are none in contact at that time. This means that the duration of the signal is always a multiple of 20 game ticks (10 redstone ticks). While powered, a detector rail: | A detector rail becomes [[Minecraft:Detector Rail#Block states|powered]] when any part of any minecart's [[Minecraft:bounding box]] comes into contact with it. Every 20th [[Minecraft:Tick|game tick]] after the rail first becomes powered, it checks whether any minecart is still present and depowers if there are none in contact at that time. This means that the duration of the signal is always a multiple of 20 game ticks (10 redstone ticks). While powered, a detector rail: | ||
* sets adjacent '''redstone dust''' to power level 15 | * sets adjacent '''[[Minecraft:redstone dust]]''' to [[Minecraft:power level]] 15 | ||
* activates adjacent '''redstone | * activates adjacent '''[[Minecraft:redstone repeater]]s''' facing away from the detector rail | ||
* activates adjacent '''redstone | * activates adjacent '''[[Minecraft:redstone comparator]]s''' facing away from the detector rail to a level corresponding to the fullness of the minecart if it is a [[Minecraft:Minecart with Chest|minecart with chest]] or a [[Minecraft:Minecart with Hopper|minecart with hopper]] | ||
* strongly powers the block supporting the detector rail if that block is conductive | * strongly powers the block supporting the detector rail if that block is [[Minecraft:conductive]] | ||
* activates any adjacent '''[[Minecraft:Redstone components#Mechanism components|mechanism components]]''', including above or below, such as [[Minecraft:piston]]s, redstone | * activates any adjacent '''[[Minecraft:Redstone components#Mechanism components|mechanism components]]''', including above or below, such as [[Minecraft:piston]]s, [[Minecraft:redstone lamp]]s, [[Minecraft:powered rail]]s, [[Minecraft:hopper]]s, etc. | ||
[[File:Detector-comparator-diff.png|thumbnail|right|Comparators give a signal for a minecart with chest or a minecart with hopper]] | [[File:Detector-comparator-diff.png|thumbnail|right|Comparators give a signal for a minecart with chest or a minecart with hopper]] | ||
If the minecart on the detector rail is a minecart with chest or minecart with hopper, an adjacent redstone comparator facing away from the detector rail outputs a power level proportional to the [[Minecraft:Redstone Comparator#Measure block state|container's fullness]], possibly power level 0. For any other type of minecart (including a regular minecart with a mob riding it) the comparator's output is zero. If multiple minecarts are on the detector rail, the comparator reads only the minecart that was placed first. | If the minecart on the detector rail is a [[Minecraft:minecart with chest]] or [[Minecraft:minecart with hopper]], an adjacent redstone comparator facing away from the detector rail outputs a power level proportional to the [[Minecraft:Redstone Comparator#Measure block state|container's fullness]], possibly power level 0. For any other type of minecart (including a regular minecart with a mob riding it) the comparator's output is zero. If multiple minecarts are on the detector rail, the comparator reads only the minecart that was placed first. | ||
A comparator can read the contents of a minecart with hopper or with chest on a detector rail through a solid opaque block, as it can with other container blocks. | A comparator can read the contents of a minecart with hopper or with chest on a detector rail through a solid opaque block, as it can with other container blocks. | ||
{{ | {{-}} | ||
=== Mob interaction === | === Mob interaction === | ||
Like other types of rails, | Like other types of rails, [[Minecraft:spider]]s, [[Minecraft:cave spider]]s, and [[Minecraft:warden]]s are the only land mobs that can walk onto detector rails. | ||
=== Piston interactivity === | === Piston interactivity === | ||
Detector rail can be pushed by the [[Minecraft:piston]], and can be pulled by the sticky piston. However, detector rail breaks and drops as an item when it is unsupported because of being moved. | Detector rail can be pushed by the [[Minecraft:piston]], and can be pulled by the [[Minecraft:sticky piston]]. However, detector rail breaks and drops as an item when it is unsupported because of being moved. | ||
== Sounds == | == Sounds == | ||
{{ | {{Sound table/Block/Metal}} | ||
== Data values == | == Data values == | ||
=== ID === | === ID === | ||
{{ | {{edition|java}}: | ||
{{ID table | {{ID table | ||
|edition=java | |edition=java | ||
| Line 97: | Line 96: | ||
|foot=1}} | |foot=1}} | ||
{{ | {{edition|bedrock}}: | ||
{{ID table | {{ID table | ||
|edition=bedrock | |edition=bedrock | ||
| Line 110: | Line 109: | ||
=== Block states === | === Block states === | ||
{{ | {{see also|Block states}} | ||
{{#lst:Powered Rail|block states}} | {{#lst:Powered Rail|block states}} | ||
== Videos == | == Videos == | ||
<div style="text-align:center">{{ | <div style="text-align:center">{{yt|bxVOSJGSDlA}}</div> | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java beta}} | ||
|{{ | |{{HistoryLine||1.5|[[File:Detector Rail (NS) JE1 BE1.png|32px]] [[File:Detector Rail (EW) JE1 BE1.png|32px]] [[File:Detector Rail (nS) JE1 BE1.png|32px]] [[File:Detector Rail (Ew) JE1 BE1.png|32px]] [[File:Detector Rail (Ns) JE1 BE1.png|32px]] [[File:Detector Rail (eW) JE1 BE1.png|32px]]<br>Added detector rails.}} | ||
|{{ | |{{HistoryLine|java}} | ||
|{{ | |{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 6|Detector rails are now broken faster using a [[Minecraft:pickaxe]].}} | ||
|{{ | |{{HistoryLine||1.3.1|dev=12w21a|Detector rails are now [[Minecraft:renewable]], due to redstone dust being obtainable from [[Minecraft:trading]].}} | ||
|{{ | |{{HistoryLine||1.5|dev=13w10a|[[File:Powered Detector Rail (NS) JE1 BE1.png|32px]] [[File:Powered Detector Rail (EW) JE1 BE1.png|32px]] [[File:Powered Detector Rail (nS) JE1 BE1.png|32px]] [[File:Powered Detector Rail (Ew) JE1 BE1.png|32px]] [[File:Powered Detector Rail (Ns) JE1 BE1.png|32px]] [[File:Powered Detector Rail (eW) JE1 BE1.png|32px]]<br>A distinct texture for active detector rails has now been added.}} | ||
|{{ | |{{HistoryLine||1.8|dev=14w04a|[[File:Detector Rail (in minecart) 14w04a.png|32px]] [[File:Powered Detector Rail (in minecart) 14w04a.png|32px]] If a detector 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|||dev=14w28a|Sloped detector rails no longer decrease their hitbox to 2 pixels of a block when activated.}} | ||
|{{ | |{{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|Detector rails can now be found in [[Minecraft:chest minecart]]s in [[Minecraft:mineshaft]]s.}} | ||
|{{ | |{{HistoryLine|||dev=15w46a|Mobs no longer spawn on detector 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.}} | ||
|{{ | |{{HistoryLine||1.11|dev=16w32b|All sloped rail types' hitbox heights have now been decreased from a full block to a half block.}} | ||
|{{ | |{{HistoryLine||1.14|dev=18w43a|[[File:Detector Rail (NS) JE2 BE2.png|32px]] [[File:Detector Rail (EW) JE2 BE2.png|32px]] [[File:Detector Rail (nS) JE2 BE2.png|32px]] [[File:Detector Rail (Ew) JE2 BE2.png|32px]] [[File:Detector Rail (Ns) JE2 BE2.png|32px]] [[File:Detector Rail (eW) JE2 BE2.png|32px]]<br>[[File:Powered Detector Rail (NS) JE2 BE2.png|32px]] [[File:Powered Detector Rail (EW) JE2 BE2.png|32px]] [[File:Powered Detector Rail (nS) JE2 BE2.png|32px]] [[File:Powered Detector Rail (Ew) JE2 BE2.png|32px]] [[File:Powered Detector Rail (Ns) JE2 BE2.png|32px]] [[File:Powered Detector Rail (eW) JE2 BE2.png|32px]]<br>The textures of detector rails have now been changed.}} | ||
|{{ | |{{HistoryLine|||dev=19w12b|Detector rails can now be placed on [[Minecraft:glass]], [[Minecraft:ice]], [[Minecraft:glowstone]] and [[Minecraft:sea lantern]]s.}} | ||
|{{ | |{{HistoryLine||1.17|dev=20w45a|All rail types can now be waterlogged.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|pocket alpha}} | ||
|{{ | |{{HistoryLine||v0.13.0|dev=build 1|[[File:Detector Rail (NS) JE1 BE1.png|32px]] [[File:Powered Detector Rail (NS) JE1 BE1.png|32px]] Added detector rails.}} | ||
|{{ | |{{HistoryLine||v0.14.0|dev=build 1|Detector rails can now be found inside [[Minecraft:minecarts with chests]] in [[Minecraft:mineshaft]]s.}} | ||
|{{ | |{{HistoryLine|bedrock}} | ||
|{{ | |{{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:Detector Rail (NS) JE2 BE2.png|32px]] [[File:Powered Detector Rail (NS) JE2 BE2.png|32px]] The textures of detector rails have now been changed.}} | ||
}} | }} | ||
=== Legacy Console Edition === | === Legacy Console Edition === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|console}} | ||
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Detector Rail (NS) JE1 BE1.png|32px]] [[File:Powered Detector Rail (NS) JE1 BE1.png|32px]]{{ | |{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Detector Rail (NS) JE1 BE1.png|32px]] [[File:Powered Detector Rail (NS) JE1 BE1.png|32px]]{{verify|Did detector rails really have a texture for being activated in TU1 or was it later added in TU19/TU12?}} Added detector rails.}} | ||
|{{ | |{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|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 now been decreased from a full block to a half block.}} | ||
|{{ | |{{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 [[Minecraft: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:Detector Rail (NS) JE2 BE2.png|32px]] [[File:Powered Detector Rail (NS) JE2 BE2.png|32px]] The textures of detector rails have now been changed.}} | ||
}} | }} | ||
=== ''New Nintendo 3DS Edition'' === | === ''New Nintendo 3DS Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|new 3ds}} | ||
|{{ | |{{HistoryLine||0.1.0|[[File:Detector Rail (NS) JE1 BE1.png|32px]] [[File:Powered Detector Rail (NS) JE1 BE1.png|32px]] Added detector rails.}} | ||
}} | }} | ||
=== Data history === | === Data history === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java}} | ||
|{{ | |{{HistoryLine||1.8|dev=14w10a|Detector rails with [[Minecraft:Java Edition data values/Pre-flattening/Block IDs/Before 14w25a|numerical metadata variants]] 6, 7, 14 and 15, which are inaccessible through normal gameplay or even commands and as such require the use of external editors to exist, now have [[Minecraft:Missing model|no model]] [[File:Missing Model JE2.png|32px]]. Their appearances prior to this point were unknown.}} | ||
|{{HistoryLine|||dev=14w25a|Detector rails are now defined via block states rather than by numerical metadata. Prior to this version, the numerical metadata variants of the detector rail were as follows: | |{{HistoryLine|||dev=14w25a|Detector rails are now defined via [[Minecraft:block states]] rather than by numerical metadata. Prior to this version, the numerical metadata variants of the detector rail were as follows: | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Unpowered north-south}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Unpowered east-west}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Unpowered ascending east}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Unpowered ascending west}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Unpowered ascending north}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Unpowered ascending south}} | ||
{{ | {{dvt|spritetype=block|sprite=missingno|dv=6-7|[[Minecraft:Java Edition removed blocks/Metadata variants#Boring variants|Inaccessible - behavior unknown]]}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|dv=8|Powered north-south}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Powered east-west}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Powered ascending east}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Powered ascending west}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Powered ascending north}} | ||
{{ | {{dvt|spritetype=block|sprite=detector-rail|Powered ascending south}} | ||
{{ | {{dvt|spritetype=block|sprite=missingno|dv=14-15|[[Minecraft:Java Edition removed blocks/Metadata variants#Boring variants|Inaccessible - behavior unknown]]|foot=1}}}} | ||
|{{ | |{{HistoryLine|||dev=14w26a|Detector rails with metadata values 6, 7, 14 and 15 have now been completely removed from the game.}} | ||
|{{ | |{{HistoryLine||1.13|dev=17w47a|Prior to [[Minecraft:Java Edition 1.13/Flattening|''The Flattening'']], this block's numeral ID was 28.}} | ||
}} | }} | ||
== Issues == | == Issues == | ||
{{ | {{issue list}} | ||
== Gallery == | == Gallery == | ||
| Line 197: | Line 196: | ||
== See also == | == See also == | ||
*{{ | *{{BlockLink|Rail}} | ||
*{{ | *{{BlockLink|Activator Rail}} | ||
*{{ | *{{BlockLink|Powered Rail}} | ||
== References == | |||
{{reflist}} | |||
== Navigation == | == Navigation == | ||
{{ | {{Navbox redstone|components}} | ||
{{ | {{Navbox blocks|Utility}} | ||
[[Category:Non-solid blocks]] | [[Category:Non-solid blocks]] | ||
| Line 210: | Line 212: | ||
[[Category:Readable by comparators]] | [[Category:Readable by comparators]] | ||
de:Sensorschiene | [[Minecraft:de:Sensorschiene]] | ||
es:Raíl detector | [[Minecraft:es:Raíl detector]] | ||
fr:Rails détecteurs | [[Minecraft:fr:Rails détecteurs]] | ||
it:Binario | [[Minecraft:it:Binario]] | ||
ja:ディテクターレール | [[Minecraft:ja:ディテクターレール]] | ||
ko:감지 레일 | [[Minecraft:ko:감지 레일]] | ||
nl:Detectiespoor | [[Minecraft:nl:Detectiespoor]] | ||
pl:Tory z czujnikiem | [[Minecraft:pl:Tory z czujnikiem]] | ||
pt:Trilho detector | [[Minecraft:pt:Trilho detector]] | ||
ru:Нажимные рельсы | [[Minecraft:ru:Нажимные рельсы]] | ||
uk:Детекторні рейки | [[Minecraft:uk:Детекторні рейки]] | ||
zh:探测铁轨 | [[Minecraft:zh:探测铁轨]] | ||
Latest revision as of 11:05, 16 May 2026
Template:Infobox block The detector rail is a type of Minecraft:rail that produces a Minecraft:redstone signal while a Minecraft:minecart is on it.
Obtaining
Breaking
The suitable tool to break detector rail is Minecraft:pickaxe. Template:Breaking row Detector rail drops itself when it's destroyed.
Generated loot
Crafting
Usage
To place a detector rail, Template:Control a detector rail item while pointing at a surface facing the space the detector rail should occupy.
A detector rail can be placed on top of any block whose top face has a rim around the edge, such as any Minecraft:full block, Minecraft:hopper, top slab, upside-down stairs, or top trapdoor. A full list of compatible blocks can be found here.
If a detector rail is updated while on an opened top trapdoor, the rail breaks and drops as an item. Placing a minecart on a detector rail on top of a closed and unpowered trapdoor opens the trapdoor and updates the rail, causing the detector rail to break. If the top trapdoor is powered and closed when the minecart is placed, the trapdoor does not open so the rail does not break. The minecart on the detector rail then powers the trapdoor, meaning the external power source can be removed without causing the trapdoor to change state and break the rail.
When placed, a detector rail configures itself to line up with any adjacent Minecraft:rails (including Minecraft:activator rails, Minecraft:powered rails, and other Minecraft:detector rails), as well as adjacent rails one block up. If there are two adjacent rails on non-opposite sides, or three or more adjacent rails, a detector rail lines up in the east-west direction. If there are no adjacent rails, a detector rail lines up in the north-south direction (but if a rail is later placed to the east or west, the detector rail re-orients itself in the east-west direction even if it is already connected to another rail to the north or south). If a rail it would line up with is one block up, a detector rail slants upward toward it (with multiple options to slant upward to, a detector rail "prefers", in order: west, east, south, and north). Other configurations can be created by placing and removing various rails.
Minecraft:Mobs avoid walking across a detector rail (or other rails), but can be pushed onto them.
It cannot be placed suspended in midair, even with commands.<ref>Template:Bug</ref>
Rail
Detector rails (and other rails) act as "roads" for Minecraft:minecarts. A minecart that enters a detector rail's space from either end of the detector rail continues to move, losing only a little velocity (which can then be increased again with Minecraft:powered rails). A minecart that enters a detector rail's space from the side turns east or south (depending on the detector rail's orientation), or in the downward direction for a slanted detector rail.
Redstone component
A detector rail becomes powered when any part of any minecart's Minecraft:bounding box comes into contact with it. Every 20th game tick after the rail first becomes powered, it checks whether any minecart is still present and depowers if there are none in contact at that time. This means that the duration of the signal is always a multiple of 20 game ticks (10 redstone ticks). While powered, a detector rail:
- sets adjacent Minecraft:redstone dust to Minecraft:power level 15
- activates adjacent Minecraft:redstone repeaters facing away from the detector rail
- activates adjacent Minecraft:redstone comparators facing away from the detector rail to a level corresponding to the fullness of the minecart if it is a minecart with chest or a minecart with hopper
- strongly powers the block supporting the detector rail if that block is Minecraft:conductive
- activates any adjacent mechanism components, including above or below, such as Minecraft:pistons, Minecraft:redstone lamps, Minecraft:powered rails, Minecraft:hoppers, etc.
If the minecart on the detector rail is a Minecraft:minecart with chest or Minecraft:minecart with hopper, an adjacent redstone comparator facing away from the detector rail outputs a power level proportional to the container's fullness, possibly power level 0. For any other type of minecart (including a regular minecart with a mob riding it) the comparator's output is zero. If multiple minecarts are on the detector rail, the comparator reads only the minecart that was placed first.
A comparator can read the contents of a minecart with hopper or with chest on a detector rail through a solid opaque block, as it can with other container blocks.
Mob interaction
Like other types of rails, Minecraft:spiders, Minecraft:cave spiders, and Minecraft:wardens are the only land mobs that can walk onto detector rails.
Piston interactivity
Detector rail can be pushed by the Minecraft:piston, and can be pulled by the Minecraft:sticky piston. However, detector rail breaks and drops as an item when it is unsupported because of being moved.
Sounds
Data values
ID
Template:Edition: Template:ID table
Template:Edition: Template:ID table
Block states
{{#lst:Powered Rail|block states}}
Videos
History
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
Data history
Issues
Gallery
Screenshots
-
Image from Notch’s twitter teasing detector rails.
See also
References
Template:Navbox redstone Template:Navbox blocks
Minecraft:de:Sensorschiene Minecraft:es:Raíl detector Minecraft:fr:Rails détecteurs Minecraft:it:Binario Minecraft:ja:ディテクターレール Minecraft:ko:감지 레일 Minecraft:nl:Detectiespoor Minecraft:pl:Tory z czujnikiem Minecraft:pt:Trilho detector Minecraft:ru:Нажимные рельсы Minecraft:uk:Детекторні рейки Minecraft:zh:探测铁轨