Each item in Minecraft has a unique ID assigned to it, known as an item ID, this can be used in commands to spawn the item into the game. The item ID for detector rail in Minecraft is shown below:
Items from earlier versions of Minecraft were assigned a numerical ID - a unique number to represent it.
The numerical ID for Detector Rail is:
The Detector Rail item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.
Below is a table of the tools that can be used to break Detector Rail blocks, and the speed it will take to break at (in seconds). This is calculated with the formula (1.5 * Block Hardness) / Tool Multiplier.
Detector rails can detect when a minecart runs over them. They can be used in redstone circuits, which allows for redstone contraptions that react to minecarts.
|Max Stack Size||64|
|Min / Max State IDs||1016 - 1027|
Block states are values assigned to a block that changes its state. For example, many blocks have a "direction" block state which can be used to change the direction a block faces.
Find a table of all blockstates for the Detector Rail block below.
|Block State Name||Type||Values|
|shape||enum ?|| |
|powered||bool ?|| |