Detector rails in Minecraft require 6 iron ingots, 1 stone pressure plate, and 1 redstone dust, arranged in a specific pattern on a crafting table. Each craft produces 6 detector rails.
Crafting Recipe Layout
Open your crafting table and place the materials in this pattern across the 3×3 grid:
- Left column: Iron ingot in the top, middle, and bottom slots
- Center column: Stone pressure plate in the middle slot, redstone dust in the bottom slot
- Right column: Iron ingot in the top, middle, and bottom slots
The iron ingots form two vertical columns on either side, with the stone pressure plate sandwiched between them and redstone dust directly below it. This yields 6 detector rails per craft, making it a fairly efficient recipe for the materials involved.
Gathering the Materials
Iron ingots are the biggest cost here. You need 6 per craft, which means mining at least 6 iron ore blocks and smelting them. Iron ore is most common around Y-level 14, so mining at that depth gives you the best return. Any pickaxe made of stone or better will work.
Redstone dust comes from mining redstone ore, which spawns deep underground. The most common level is Y -59, near the bottom of the world. You need at least an iron pickaxe to mine redstone ore, and each block drops 4 to 5 redstone dust, so a single ore block covers you for several crafts.
The stone pressure plate is crafted from 2 stone blocks placed side by side on a crafting table. Note that you need stone specifically, not cobblestone. Smelt cobblestone in a furnace to get stone, then craft the pressure plate. Wooden pressure plates do not work in this recipe.
What Detector Rails Do
A detector rail acts like a pressure plate built into a rail line. When a minecart rolls over it, the rail sends a redstone signal to any adjacent blocks or redstone dust. The signal stays active as long as the minecart sits on the rail, then turns off once the cart moves away.
This makes detector rails essential for any automated rail system. You can use them to trigger doors, activate pistons, switch track directions, or light up redstone lamps whenever a minecart passes a certain point.
Useful Builds With Detector Rails
One of the most practical uses is pairing a detector rail with a redstone comparator. When a storage minecart (like a hopper minecart) sits on a detector rail, a comparator placed next to it can read how many items are inside the cart. The comparator outputs a signal strength proportional to the cart’s contents, which lets you build systems that respond differently depending on whether a cart is full, partially loaded, or empty.
For example, you can set up a sorting station where a hopper minecart travels between chests and furnaces. A detector rail with a comparator checks the cart’s inventory at a junction. If the cart still has items, the track switches one direction to continue unloading. If it’s empty, the track routes the cart back to the loading station. This is essentially an AND gate with the comparator output inverted: the track only switches when the detector senses a minecart but the comparator reads no items.
Simpler uses work well too. Placing a detector rail before a powered rail lets you trigger the powered rail only when a cart approaches, saving redstone and keeping your rail lines cleaner. You can also wire a detector rail to a note block or bell to create an arrival alert when a minecart reaches a station.
Placement Tips
Detector rails connect to other rail types automatically, just like normal rails. You can place them on flat ground or on slopes. They don’t power themselves, though, so a minecart will slow down on a detector rail the same way it would on a regular unpowered rail. Space them out between powered rails to keep your carts moving at full speed.
For redstone wiring, the signal comes out of the block the detector rail sits on. Place redstone dust or a repeater adjacent to the rail’s block to carry the signal where you need it. If you’re running the signal a long distance, add repeaters every 15 blocks to keep it strong.

