Detector Rail
Block

Detector Rail

Namespaced ID
minecraft:detector_rail
Legacy numeric ID
28(1.8 & earlier)
Stack size
64
Edition
Java & Bedrock

/give command

Run in chat or a command block. Replace @p with a player name to target someone specific.

Command builder

Set the count, custom name, lore, and enchantments to generate a ready-to-paste /give command for Detector Rail.

Shown above the item in the inventory.
Italic text shown below the item name. One line per row.
1 compatible with Detector Rail.

Component syntax for Minecraft 1.21.8.

Block properties

Hardness
0.7
Blast resistance
0.7
Material
mineable / pickaxe
Diggable
Yes
Transparent
Yes
Light emitted
0 / 15
Light filtered
0 / 15
Block state IDs
2011 – 2034

Mining time

Break time per pickaxe tier (no haste, on ground, full air). Tools that can't harvest the block take 5× longer and won't drop the item.

PickaxeBreak timeDrops?
Wooden0.52s
Stone0.26s
Iron0.17s
Golden0.09s
Diamond0.13s
Netherite0.12s

Drops

Obtained from

Blocks that drop Detector Rail when broken.

Crafting recipes

Detector Rail
× 6

Full crafting guide for Detector Rail Step-by-step, ingredient sources, what Detector Rail crafts into.

Across versions

Legacy numeric ID
28 (pre-1.13, from 1.8)
Modern ID (1.13+)
minecraft:detector_rail (numeric IDs were removed in 1.13 — not usable in commands)
Editions
Java & Bedrock

Browse the full item list for a specific version:

How to craft Detector Rail

How do you make Detector Rail in Minecraft?

To craft Detector Rail, place the ingredients in a crafting grid following the recipe pattern shown above. The crafting grid can be a player's 2×2 inventory crafting slots (for 2×2 recipes) or a 3×3 Crafting Table. If cheats are enabled, you can also spawn Detector Rail directly with: /give @p minecraft:detector_rail.

Where do you get Detector Rail in Minecraft?

Detector Rail can be obtained by breaking Detector Rail. You can also craft it from the recipe shown above.

What is the Minecraft ID for Detector Rail?

The namespaced ID is minecraft:detector_rail, used in the /give command: /give @p minecraft:detector_rail 1. In legacy versions before 1.13, Detector Rail used the numeric ID 28. Numeric item IDs were removed in the 1.13 "Flattening" and no longer work in modern commands.

How do you mine Detector Rail in Minecraft?

Detector Rail has hardness 0.7. Any tool works. Mining without the correct tool takes 5× longer and produces no drops.