Placeable blocks

Rail

Rail is a placeable blocks item in Java Edition 26.2. It stacks up to 64 and uses the identifier minecraft:rail.

Rail — representative authorized Minecraft assetRail
Image source: Minecraft Wiki
Item ID
minecraft:rail
Numeric ID
863
Stack size
64
Edition
Java
Recipe relationships
1

How to obtain Rail

Craft or process Rail using Crafting Table; the recipe page shows each current edition-specific variant.

Crafting and processing relationships

Uses, durability and repair

A full inventory slot holds 64 items; 27 slots hold 1728, and a double chest holds 3456.

Command

/give @p minecraft:rail 64
/give
Gives an item to the selected target.
@p
The nearest player to where the command runs.
minecraft:rail
The namespaced identifier for Rail.
64
The number of items to give.

Component syntax can change between releases. This identifier is pinned to the current Java 26.2 registry used by this page.

Related content