Mojira Archive
MC-42375

DataValue of Rail ignored when using /setblock /clone /fill

Rails placed using the setblock command will only be oriented by the specified dataValue if there is already a rail at the specified coordinates. Otherwise, it will orient the rail such that it connects to adjacent rails, or if there are none, it will always place the north_south variant.

To reproduce, use this command in an open space:

/setblock ~1 ~ ~ minecraft:rail 9 replace

This will place a straight section of rail north/south. Without moving, use the command again, and the rail will change into the desired type: a curved section facing north/east.

If positioned so that the rail will be placed next to another rail, both rails will change shape in order to connect.

Won't Fix

Richard Moeskops

[Mojang] Grum (Erik Broes)

2013-12-17, 04:40 PM

2017-11-19, 09:48 PM

2015-11-09, 01:23 PM

3

5

Confirmed

/clone, /fill, /setblock, dataValue, orientation, rails

Minecraft 1.7.4 - Minecraft 15w44aMinecraft 1.7.4, Minecraft 1.8.2-pre6, Minecraft 1.8.8, Minecraft 15w37a, Minecraft 15w41b, Minecraft 15w43c, Minecraft 15w44a

-