A detector rail can be used a rail which could identify when minecarts take presctiption it or how full container minecarts onto it are.
To put a detector rail, make use of the Place Block control evidently of the block next to the destination space.
A detector rail could be mounted on:
A detector rail can't be connected to the side or bottom associated with a block, but working to make this kind of attachment could cause the detector rail to connect to the peak of the block underneath the destination space. For instance, if your fence is on the floor, trying to fasten a detector rail aside from the fence may cause the detector rail to become mounted on the top ground near the fence rather.
When placed, a detector rail will configure itself to set up with any adjacent rails (including activator rails. powered rails. along with other detector rails ), in addition to adjacent rails one block up. Should there be two adjacent rails on non-opposite sides, or 3 or more adjacent rails, a detector rail will fall into line within the east-west direction. Should there be no adjacent rails, a detector rail will fall into line within the north-south direction (but when a rail is later placed towards the east or west, the detector rail will re-orient itself within the east-west direction even if it's already linked to another rail towards the south or north). If your rail it might fall into line with is a block up, a detector rail will slant upwards towards it (with multiple choices to slant upwards to, a detector rail "prefers", so as: west, east, south, and north). Other configurations could be produced by putting and removing various rails.
Mobs won't attempt to walk across a detector rail (or any other rails), but could be pressed onto them.
Rail Edit
Detector rails (along with other rails) behave as "roads" for minecarts. A minecart that enters a detector rail's space from either finish from the detector rail is constantly move, losing merely a little velocity (which could then be elevated again with powered rails ). A minecart that enters a detector rail's space in the side will turn east or south (with respect to the detector rail's orientation), or perhaps in the downward direction for any slanted detector rail.
Redstone component Edit
Example for signal strength of the full minecart (27 stacks) . 5-full one (14 stacks)
A detector rail activates when any minecart is onto it (even if perhaps part of the minecart is onto it), and deactivates when no minecarts take presctiption it. While active, a detector rail:
- forces adjacent redstone dust and adjacent redstone repeaters facing from the detector rail, to electricity 15
- forces adjacent redstone comparators facing from the detector rail to an amount akin to the fullness from the minecart if it's a Minecart with Chest or perhaps a Minecart with Hopper .
- strongly forces any full solid opaque block underneath the detector rail to electricity 15
- activates any adjacent mechanism components . including below or above, for example pistons. redstone lamps. powered rails. etc.
Comparators only provide a signal for any minecart with chest or perhaps a minecart with hopper
When the minecart around the detector rail is really a minecart with chest or minecart with hopper. an adjacent redstone comparator facing from the detector rail will output an electrical level proportional towards the container's fullness. possibly electricity . For any other kind of minecart (together with a regular minecart having a player or perhaps a villager riding it) the comparator's output is zero.
A detector rail has got the ID name minecraft:detector_rail and it is further based on its block data. A detector rail also offers a block condition that is likely to switch the functionality of block data inside a future version.
Block data Edit
A detector rail's block data stores its orientation and activation status: