mojira.dev
MC-33098

Command Minecarts calculate as 1 block above where they are

When you use a Command Block Minecart to run a command using relative coordinates, the coordinates ~ ~ ~ are 1 block above the minecart, as opposed to on the block of the minecart. For example, if you wanted the cart to replace the block that it's rail was on with stone, you would have to do ~ ~-2 ~ instead of a more expected ~ ~-1 ~

Environment

Ubuntu 13.04 on Pangolin Performance System76 Laptop, Java version:
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)

Attachments

Comments 7

~s do not work on command block minecarts

As I said earlier, but deleted my comment since I realized this thread hadn't been updated in a while, this is because the minecarts calculate the rail block as a full block.

Then just use ~-2 instead of ~-1 ?

Look closely. The command block minecart is 1 + 1/8th blocks tall. The cart itself is in one block and the sliver of the command block that sticks out over it is in the block above. Screenshot attached.

Cannot Reproduce in 1.8.1 Pre3, assuming it's fixed

migrated

(Unassigned)

Confirmed

command-block-minecart, command_block, minecart

Minecraft 13w39a, Minecraft 13w39b, Minecraft 13w41a, Minecraft 13w41b, Minecraft 1.7.2

Minecraft 1.8

Retrieved