Detector Rail — Minecraft block

Detector Rail

Detector Rail turns minecart movement into a redstone signal, useful for stations and counters.

Block ID minecraft:detector_rail
Mod Vanilla
Game versions
1.21

Description

Detector Rail is crafted from six iron ingots, one stone pressure plate, and one redstone dust, producing six signal-ready track sections. It behaves like ordinary track for movement, but when any minecart sits on top, it emits redstone power to adjacent blocks, dust, comparators, and repeaters. The signal ends as soon as the cart leaves.

This makes the block a compact sensor for railway logic. A station can detect an arriving passenger cart and open doors, trigger a note sound, start a powered rail, or switch a junction. Item systems use it to count carts and synchronize unloaders. With command-free vanilla mechanics, it is one of the cleanest ways to let a moving vehicle communicate with a fixed redstone circuit.

Java & Bedrock Guide

How to use a Detector Rail in Minecraft

  1. 1

    Craft the detector rail

    Place six iron ingots in two vertical columns, one redstone dust in the center, and one stone pressure plate on top of the redstone to craft six Detector Rails.

  2. 2

    Lay it into your track

    Insert the Detector Rail anywhere a minecart line needs detection, such as a station stop or a counting point. It connects to normal, powered, and activator rails.

  3. 3

    Wire the redstone output

    Run redstone dust, a repeater, or place a redstone lamp next to the Detector Rail. The rail powers adjacent blocks the entire time a minecart sits on top.

  4. 4

    Read container carts with a comparator

    Place a comparator leading out of the Detector Rail to read how full a chest minecart or hopper minecart is as it stops on the rail.

Signal timing

A Detector Rail stays powered only while a minecart is on it; the signal drops the instant the cart rolls off, so add a redstone latch (such as a T flip-flop) if you need the output to stay on.

How to craft this block

Crafting
Detector Rail
6
Detector Rail

Frequently asked questions

How do you craft a Detector Rail?

Combine six iron ingots, one redstone dust, and one stone pressure plate on a crafting table to make six Detector Rails.

What does a Detector Rail do?

A Detector Rail emits a redstone signal to nearby blocks whenever a minecart passes over or rests on top of it.

Can a Detector Rail read a chest minecart's contents?

Yes. Place a comparator next to the Detector Rail and it outputs a signal strength proportional to how full a chest or hopper minecart on the rail is.

Does the Detector Rail work in both Java and Bedrock?

Yes, the Detector Rail behaves the same in Java and Bedrock Edition for both movement and redstone output.

Is the redstone signal permanent?

No. The Detector Rail powers off the moment the minecart leaves, so add a redstone latch if you need the state to hold.

Minecraft and all related materials are trademarks and copyrights of Mojang Studios © 2009–2026. This site is not an official Minecraft product and is not affiliated with or endorsed by Mojang Studios or Microsoft Corporation.