Rail ID in Minecraft
The Rail ID in Minecraft Java Edition is minecraft:rail, the same on Bedrock. Before Java 1.13 it was 66:9.
/give command
- Java 1.13 – 26.3
/give @p minecraft:rail 64Gives a full stack of 64. Change the last number for a different amount.
- Bedrock
/give @s rail 64 - Place the block (Java)
/setblock ~ ~ ~1 minecraft:rail
.
Want enchantments, a name or lore? Open it in the give command generator.
Details
- Java ID
minecraft:rail- Bedrock ID
minecraft:rail- Java 1.8–1.12 ID
- 66:9
- Added in Java
- 1.13 or earlier
- Stack size
- 64
- Best tool
- Pickaxe
- Hardness
- 0.7
- Blast resistance
- 0.7
How to make Rail
Crafting table (makes 16)
Block states
Use these in /setblock or /fill, for example minecraft:rail[shape=north_south,waterlogged=false].
| State | Values | Default |
|---|---|---|
| shape | north_south, east_west, ascending_east, ascending_west, ascending_north, ascending_south, south_east, south_west, north_west, north_east | north_south |
| waterlogged | true, false | false |