Rail Item ID

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 rail in Minecraft is shown below:

Rail Spawn Command

The Rail item can be spawned in Minecraft with the below command. Cheats must be enabled before this will work.

If you are running the Essentials plugin, you will need to run /minecraft:give instead of simply /give. This is because the Essentials /give command overrides Minecraft's built-in command.

Mining Tools

Below is a table of the tools that can be used to break 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.

Tool Speed
Golden Pickaxe Golden Pickaxe 0.09s
Diamond Pickaxe Diamond Pickaxe 0.13s
Iron Pickaxe Iron Pickaxe 0.17s
Stone Pickaxe Stone Pickaxe 0.26s
Wooden Pickaxe Wooden Pickaxe 0.52s

Rail Information

Rail

A rail is an item that can carry minecarts. It can be crafted with iron ingots and wooden planks. In can also be found in mineshafts, which are structures that generate naturally in Minecraft.

Item ID minecraft:rail
Numerical ID 66
Stackable Yes
Max Stack Size 64
Hardness 0.7
Material Rock
Diggable Yes
Min / Max State IDs 3180 - 3189

Rail Crafting Recipes

Ingredients Pattern Result
Iron Ingot
Iron Ingot
Iron Ingot
Stick
Iron Ingot
Iron Ingot
Iron Ingot
16x Rail

Rail Block States

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 Rail block below.

Block State Name Type Values
shape enum ?
  • NORTH_SOUTH
  • EAST_WEST
  • ASCENDING_EAST
  • ASCENDING_WEST
  • ASCENDING_NORTH
  • ASCENDING_SOUTH
  • SOUTH_EAST
  • SOUTH_WEST
  • NORTH_WEST
  • NORTH_EAST