mojira.dev
MC-1988

Teleport command doesn't work good in the command block

When you write a teleport command in the command block and when active it teleport you to other coordinates, for example, if you put -95 66 120 the block teleport you to -94 66 120, I think it is a important bug.

Linked issues

Attachments

Comments 6

I'm pretty sure this is intended behavior because of the way coordinates are defined. The middle of a block is its distance from 0 + .5
Otherwise you would be teleported to the edge of a block.

It's due to the TP system thinking the -0 coordinate doesn't exist. So if you TP to any negative coordinates, it's always one block behind where you want to go.

As Kiilek said, 0.5 is added to x and z.
-95 66 120 will teleport you to -94.5 66 120.5
95 66 120 will teleport you to 95.5 66 120.5

You should always end up in the middle of a square, not on the exact coordinates you entered.

I know it's late, but the 0.5 addition makes more sense than what I originally thought. For some reason I didn't think about adding positive numbers to negative ones, and my mind got stuck on the -0 coordinate. Sorry for trying to pass off my earlier comment as fact, I didn't intend to write it quite as such at the time.

However I still think it should be considered a bug instead of intended behavior. While using negative coordinates, it needs to subtract 0.5 not add it.

I made a Post about this and it must of been in the game for a long time because look at our post numbers link to mine https://bugs.mojang.com/browse/MC-55869

Jose Luis

(Unassigned)

Unconfirmed

Minecraft 1.4.3

Retrieved