Detector Rail

A detector rail is a non-solid block which can transport minecarts and can be used as a switchable redstone power source.

Obtaining
A detector rail can be crafted from iron ingots, redstone, and a stone pressure plate.

Usage
A detector rail can be used as a rail which can detect when minecarts are on it or how full container minecarts on it are.

A detector rail can be attached to the top of any full solid opaque block, or to the top of an upside-down slab or upside-down stairs. To place a detector rail, use the "Use Item/Place Block" control (right-click, by default) on the face of a block adjacent to the destination space.

When placed, a detector rail will configure itself to line up with any adjacent rails (including activator rails, powered rails, and other 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 will line up in the east-west direction. If there are no adjacent rails, a detector rail will line up in the north-south direction (but if a rail is later placed to the east or west, the detector rail will re-orient 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 will slant upwards towards it (with multiple options to slant upwards to, a detector rail "prefers", in order: west, east, south, and north). Other configurations can be created by placing and removing various rails.

To remove a detector rail, use the "Attack/Destroy" control (left-click, by default). Removing a detector rail takes 1.05 seconds (or faster with a pickaxe) and it will drop itself as an item. A detector rail will also be removed and drop itself as an item:
 * if its attachment block is moved, removed, or destroyed
 * if water flows into the detector rail's space
 * if a piston tries to move it vertically, or if there is no valid attachment block at the new position after a horizontal move

If lava flows into a detector rail's space, the detector rail will be destroyed without dropping itself as an item.

Mobs will not try to walk across a detector rail (or other rails), but can be pushed onto them.

As a rail
Detector rails (and other rails) act as "roads" for minecarts. A minecart that enters a detector rail's space from either end of the detector rail will continue to move, losing only a little velocity (which can then be increased again with powered rails). A minecart that enters a detector rail's space from the side will turn east or south (depending on the detector rail's orientation), or in the downward direction for a slanted detector rail.

As a redstone component


A detector rail activates when any minecart is on it (even if only a portion of the minecart is on it), and deactivates when no minecarts are on it. While active, a detector rail:
 * powers any adjacent redstone dust to power level 15
 * powers any adjacent redstone comparator or redstone repeater facing away from the detector rail to power level 15
 * strongly powers any full solid opaque block beneath the detector rail to power level 15
 * activates any adjacent mechanism components, including above or below, such as pistons, redstone lamps, powered rails, etc.

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 will output a power level proportional to the container's fullness instead, possibly power level 0.

Data values
A detector rail's block data stores its orientation:
 * 0x0: flat track going -
 * 0x1: flat track going -
 * 0x2: track ascending to the
 * 0x3: track ascending to the
 * 0x4: track ascending to the
 * 0x5: track ascending to the

Issues
Sensorschiene Rails de détection Detectiespoor Tory z czujnikiem Нажимные рельсы 探测铁轨