Rail
Block

Rail

Namespaced ID
minecraft:rail
Legacy numeric ID
66(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 Rail.

Shown above the item in the inventory.
Italic text shown below the item name. One line per row.
1 compatible with 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
4758 – 4777

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 Rail when broken.

Crafting recipes

Rail
× 16

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

Across versions

Legacy numeric ID
66 (pre-1.13, from 1.8)
Modern ID (1.13+)
minecraft: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 Rail

How do you make Rail in Minecraft?

To craft 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 Rail directly with: /give @p minecraft:rail.

Where do you get Rail in Minecraft?

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

What is the Minecraft ID for Rail?

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

How do you mine Rail in Minecraft?

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