Skip to main content

MINECRAFT · ITEM

Minecraft Detector Rail item

Detector Rail

  • Item

A rail block that emits a redstone signal when a minecart passes over it, useful for detection circuits and automation.

Questions about the Detector Rail? Ask the GameServersHub Discord for answers from real server owners. Updated .

About

Detector Rail is a special rail variant that outputs a redstone signal when any minecart travels across it. Place it in a rail network wherever you need to trigger redstone logic, doors, pistons, lights, or other devices, based on minecart movement.

It stacks to 64 and mines quickly with any tool. Use it in repeating patterns within a rail line, or space them as needed depending on your detection requirements and minecart speed. The signal stays active only while a minecart is on the rail, so pair it with repeaters or latches if you need the signal to persist.

Frequently Asked Questions

Can I get the Detector Rail without spawning it?
Yes. The Detector Rail can also be obtained through normal Minecraft progression. Admins usually spawn it for speed when testing, running events, or outfitting players, which is what the commands on this page are for.
What is the Detector Rail used for?
Detector Rail is a special rail variant that outputs a redstone signal when any minecart travels across it. Place it in a rail network wherever you need to trigger redstone logic, doors, pistons, lights, or other devices, based on minecart movement.
What does the Detector Rail do in Minecraft?
A rail block that emits a redstone signal when a minecart passes over it, useful for detection circuits and automation.
Which game is the Detector Rail from?
The Detector Rail is from Minecraft. Every ID, code, and command on this page is specific to Minecraft and its current live build.
What items are related to the Detector Rail?
See the Related section at the bottom of this page for items commonly used alongside the Detector Rail, or open Browse Games to explore the full Minecraft database.
How current is the Detector Rail spawn info?
The Detector Rail entry was last verified on GameServersCodex on June 29, 2026. We track the live Minecraft build, so the IDs and commands here reflect the current patch.
What is the item id of the Detector Rail?
The item id of the Detector Rail is minecraft:detector_rail.
What is the numerical id of the Detector Rail?
The numerical id of the Detector Rail is 28.
What is the give command of the Detector Rail?
The give command of the Detector Rail is /give @p minecraft:detector_rail 1.
What is the stackable of the Detector Rail?
The stackable of the Detector Rail is Yes.
What is the max stack size of the Detector Rail?
The max stack size of the Detector Rail is 64.
What is the material of the Detector Rail?
The material of the Detector Rail is Rock.
What is the hardness of the Detector Rail?
The hardness of the Detector Rail is 0.7.
What is the diggable of the Detector Rail?
The diggable of the Detector Rail is Yes.