Pixel art illustration of a straight minecart rail with wooden ties and two iron rails
Minecraft Java Item ID

Rail ID

Rail is a transportation block used for minecart tracks. It is crafted from iron ingots and sticks, and can be placed on solid blocks.

✓ Verified for Java Edition 26.2
Namespaced item ID minecraft:rail

Rail Item Facts

Maximum stack64
Available inSurvival and Creative
Historical numerical ID66

Historical numerical ID: Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Rail

Copy the current Java Edition command, or open the generator to change the player and quantity.

/give @p minecraft:rail 1

Customize this command →

Historical command for Java 1.12.2 and earlier

Modern namespaced IDs are recommended. This numerical form is only for old Java releases.

/give @p 66 1

About Rail in Minecraft

Rail is a transportation block used for minecart tracks. It is crafted from iron ingots and sticks, and can be placed on solid blocks.

Rail Command Examples

  • Give 1 to nearest player: /give @p minecraft:rail 1
  • Give 1 to yourself: /give @s minecraft:rail 1
  • Give to a specific player: /give PlayerName minecraft:rail 1
  • Clear from inventory: /clear @p minecraft:rail

How to Get Rail

Craft Rails from six iron ingots and one stick. Rails create a path for minecarts and can be combined with powered rails for longer transport systems.

  1. Collect six iron ingots and one stick.
  2. Craft Rails at a Crafting Table.
  3. Lay rails on solid blocks and add minecarts or powered sections.

What Is Rail Used For?

Minecart

Use rails as the track for a standard minecart.

Powered Rail

Add powered segments to accelerate or control carts.

Iron Ingot

Iron ingots are the primary rail ingredient.

Sources and Data Review

Item facts were reviewed for Java Edition 26.2 on .

Related Transportation

Item ID: minecraft:minecart
Item ID: minecraft:powered_rail
Item ID: minecraft:chest_minecart
Item ID: minecraft:iron_ingot
Item ID: minecraft:redstone
Item ID: minecraft:detector_rail