DETECTOR RAIL
A rail that outputs a redstone signal when a minecart passes over it. Comparator can read the contents of container minecarts. Signal lasts while minecart is on the rail.

Crafting Recipe
6 Iron Ingots + 1 Stone Pressure Plate + 1 Redstone Dust → 6 Detector Rails
Signal Behavior
Input
Minecart presence on rail
Output
Signal strength 15 (or container fullness via comparator)
Max Signal Strength
15
Delay
Active while minecart is on rail
Modes
- Binary detection
- Analog container reading via comparator
What Detector Rail costs you on the crafting grid, exactly
Detector Rail comes out of a 3x3 arrangement of 6 Iron Ingot, 1 Redstone and 1 Stone Pressure Plate. Because 6 come out per craft, 8 items buy you 6 of them.
Most of that is Iron Ingot: 6 of the 8 squares, so stock up on that before you start on Detector Rail.
The 3x3 pattern that makes Detector Rail
| Detector Rail is built from | Squares it fills |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| Detector Rail you end up with | 6 |
Taken from the Detector Rail crafting recipe in Java Edition 26.2.
Start here: what a Detector Rail is and what it does
A rail that outputs a redstone signal when a minecart passes over it. Comparator can read the contents of container minecarts. Signal lasts while minecart is on the rail.
As a trigger it watches the world for an event and converts that event into a redstone signal. It is the station sensor of rail systems, detecting carts and reading container minecarts.
Since Beta 1.5 the Detector Rail has been part of redstone, and Java Edition 26.2 is the version described here.
How the Detector Rail reads and answers a redstone signal
Input for the Detector Rail means minecart presence on rail, and the output is signal strength 15 (or container fullness via comparator).
It outputs signal 15 the whole time a minecart sits on that specific rail block, and a comparator placed against it instead reads the fullness of a container minecart passing over. The signal ends the moment the cart leaves that one rail.
Strength 15 at the source means the last powered piece of dust sits 15 blocks away from the Detector Rail, and the one after it stays dark.
Which of the 2 states the Detector Rail happens to be in changes the answer it gives, so keep track of them: binary detection and analog container reading via comparator.
How to set up the Detector Rail
- 1Craft the Detector Rail: 6 Iron Ingots + 1 Stone Pressure Plate + 1 Redstone Dust → 6 Detector Rails.
- 2Place the Detector Rail last of all, once you know exactly where the signal begins and where it has to end, so that its facing comes out right the very first time.
- 3Lead the signal it produces into a repeater or dust line so the rest of your contraption can respond to the detected event.
- 4Give it one dry run before anything else. If the Detector Rail does not do exactly what the numbers above say it should, the fault is almost always its facing or the block sitting behind it.
Jobs the Detector Rail does well
- ▸Minecart arrival detection
- ▸Station systems
- ▸Item transport monitoring
- ▸Automatic rail switching
Tips & common mistakes
- !Signal only while minecart is on the specific rail block
- !Comparator reads container fullness, not just presence
- !Only the cart on that exact rail block counts, so place it precisely at the stop point rather than somewhere along the approach.
Detector Rail FAQ: the questions people ask

Where does the Detector Rail earn its place in a redstone build?
The Detector Rail is most often used for minecart arrival detection, station systems, item transport monitoring, and automatic rail switching. As a trigger it watches the world for an event and converts that event into a redstone signal.

Does the Detector Rail give a full 15?
15 is the number to plan around for the Detector Rail. Signal strength 15 (or container fullness via comparator).

What is the recipe for a Detector Rail?
6 Iron Ingots + 1 Stone Pressure Plate + 1 Redstone Dust → 6 Detector Rails. It was introduced in Beta 1.5.

What is the most common mistake with the Detector Rail?
Signal only while minecart is on the specific rail block. Comparator reads container fullness, not just presence.
Components that connect to Detector Rail
Follow Detector Rail further into the site through these 6 component pages:
Redstone Dust, the Detector Rail recipe asks for 1 of these
Stone Pressure Plate, 1 of these goes into Detector Rail
Powered Rail, grouped with Detector Rail, 9 of them in total
Activator Rail, another of the 9 components in this group
Lightning Rod, sits in the same group of 9 as Detector Rail
Jukebox, one of the 9 in the same group
The block behind Detector Rail: hardness, resistance and light
At hardness 0.7, Detector Rail is quick work with a pickaxe.
No light comes off Detector Rail, so torch the area around it if that matters. Detector Rail resists explosions to 0.7, the same as its hardness, which means TNT clears it.
| Detector Rail | Detector Rail in Java Edition |
|---|---|
| Detector Rail hardness | 0.7 |
| Detector Rail blast resistance | 0.7 |
| Fastest tool on Detector Rail | pickaxe |
| Light out of Detector Rail | 0 |
