[MC-4794] Teleporting to negative coordinates is inaccurate Created: 16/Dec/12  Updated: 13/Sep/23  Resolved: 16/Dec/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.5
Fix Version/s: None

Type: Bug
Reporter: Lelele Assignee: Unassigned
Resolution: Works As Intended Votes: 0
Labels: coordinate, inaccurate, negative, teleport
Environment:

Windows 7, 64 bit.


Attachments: PNG File 2013-04-01_21.59.36.png     PNG File 2013-04-01_21.59.55.png     PNG File 2013-04-01_22.08.10.png     PNG File 2013-04-01_22.24.39.png     PNG File 2013-10-23_21.14.54.png     PNG File 2013-10-23_21.15.13.png     PNG File 2013-10-23_21.15.55.png     PNG File 2013-10-23_21.16.02.png    
Issue Links:
Duplicate
is duplicated by MC-6253 Odd Command Block / Teleportation beh... Resolved
is duplicated by MC-7467 Minecraft command block tp bug Resolved
is duplicated by MC-10320 The commandblock teleports the player... Resolved
is duplicated by MC-13121 Command block inaccurate when using t... Resolved
is duplicated by MC-18364 Teleportation Bug Resolved
is duplicated by MC-34125 /tp command off by 1 block diagnally. Resolved
is duplicated by MC-36551 X Coordinate Slightly off When Telepo... Resolved
is duplicated by MC-36609 -1 coordinates are offset Resolved
is duplicated by MC-39099 /testfor in command blocks doesn't ta... Resolved
is duplicated by MC-39578 set block issue Resolved
is duplicated by MC-40960 Coordinates Offset! Bug Resolved
is duplicated by MC-48757 XYZ: X coordinate is off Resolved
is duplicated by MC-49993 Teleporting Resolved
is duplicated by MC-50689 tp slightly off Resolved
is duplicated by MC-55869 Command Block Teleportation Resolved
is duplicated by MC-64185 Coordinates bug Resolved
is duplicated by MC-68303 Command blocks teleport to the incorr... Resolved
is duplicated by MC-72457 "Looking at" coordinates are off by o... Resolved
is duplicated by MC-74560 The "Looking At" variable in F3 mode ... Resolved
is duplicated by MC-75685 When i type in the exact coordinates ... Resolved
is duplicated by MC-77548 Major - Impossible to get the EXACT b... Resolved
is duplicated by MC-81109 Wrong coordinates when coordinates ar... Resolved
is duplicated by MC-81291 -0 Corrodents Bug Resolved
is duplicated by MC-84853 XYZ off side Resolved
is duplicated by MC-85559 Testfor Command Doesn't Work In My 15... Resolved
is duplicated by MC-98309 Debug Menu Cordinate tracking is 2 bl... Resolved
is duplicated by MC-113466 Incorrect Z coordinate Resolved
is duplicated by MC-114056 Bug with teleporting to exact coords ... Resolved
is duplicated by MC-114565 F3 interface/GUI shows incorrect "X" ... Resolved
is duplicated by MC-124436 All negative locations read as their ... Resolved
is duplicated by MC-124603 X coordinate bug Resolved
is duplicated by MC-124828 Confusing error with /tp Resolved
is duplicated by MC-131725 Z Coordinates Do Not Match Resolved
is duplicated by MC-132384 Commands do not recognize coordinates... Resolved
is duplicated by MC-135638 Negative coordinates are off by 1 Resolved
is duplicated by MC-166839 Player Coordinates Inaccurate to Wher... Resolved
is duplicated by MC-197494 Negative coordinates is broken Resolved
is duplicated by MC-219792 It seems there's a bug with the telep... Resolved
is duplicated by MC-241478 Coordinates offset in negative Resolved
is duplicated by MC-1988 Teleport command doesn't work good in... Resolved
is duplicated by MC-2080 The tp command teleports you to the z... Resolved
is duplicated by MC-2849 Incorrect teleport location Resolved
Relates
relates to MC-55671 When executing the teleport command, ... Resolved
relates to MC-36602 Commands with coordinates are NOW off... Resolved
relates to MC-42494 You cant detect a block thats is at x... Resolved
relates to MC-58097 Coordinates Are Messed Up Resolved
relates to MC-153454 Negative Zero Resolved
Confirmation Status: Unconfirmed
Game Mode: Creative

 Description   
Moderator Note:

This is working as intended as there is no +0 and -0 coordinate. 0 itself cannot be positive or negative, there are only coordinates greater or less than 0.
The coordinate of a block is the coordinate rounded down, meaning anything from -0.1 to -1.0 is part of the -1 block coordinate. The center of the block at -1 is at -0.5.

When teleporting to a negative coordinate, the player ends up one block closer to 0.

For example, if I type "/tp 400 60 -704", I will instead end up in 400 60 -703.
-25 50 -39 would end up in -24 50 -38.
The same problem occurs if using command blocks.

I am not sure if the issue is present in previous versions.



 Comments   
Comment by Kumasasa [ 23/Oct/13 ]

You're right.
Sorry for the noise.

Comment by Ross Sullivan [ 23/Oct/13 ]

It HAD changed. That was in version 1.7. Today, version 1.7.1 was released. this fixed the bug. I appreciate that you may have made a mistake and no offence meant. But Dustin was right, and I was having the same problem. Thank you for your help all the same.

Comment by Kumasasa [ 23/Oct/13 ]

Nothing has changed.
Look at my screenshots and try it out.

Comment by Dustin Held [ 23/Oct/13 ]

Thank you @Ross Sullivan. It absolutely has changed. I don't like arguing with mods.....but this HAS changed since previous versions.

Comment by Ross Sullivan [ 23/Oct/13 ]

This isn't a misconception. It has changed and he is asking the question of whether or not the new coordinate system is permanent.

Comment by Dustin Held [ 22/Oct/13 ]

Kk.

Comment by Kumasasa [ 22/Oct/13 ]

There is no issue, just a misconception of the coordinate system.

Comment by Dustin Held [ 22/Oct/13 ]

The issue described in the description. Teleporting one block closer to 0,0 with negative cords.

Comment by Kumasasa [ 22/Oct/13 ]

@Dustin Held: What behaviour do you mean exactly ?

Comment by Dustin Held [ 22/Oct/13 ]

Can somebody just tell me.....is this behavior totally intended and will stay in the game for the foreseeable future?

Comment by Tails [ 07/May/13 ]

Please do not mark issues as private, unless your bug report is a security issue containing information that may compromise your server/client.

Comment by Kumasasa [ 01/Apr/13 ]

It's all correct.
Think of a coordinate system on graph paper. The axes of the coordinate system go exactly through each one line on the paper, the squares on the paper are the blocks.
--> The integer coordinates mark the corners of the blocks, not the blocks itself.

  • If you teleport to (0.0/0.0), you land on the exact center of the coordinate system.
  • If you teleport to (0/0), you land on the middle of the block right of the Z axis and below the X axis (Yellow block), but at the coordinates (0.5/0.5)
  • If you teleport to (-1/0), you land on the middle of the block left of the Z axis and below the X axis (Green block), but at the coordinates (-0.5/0.5)
Comment by Lazini [ 29/Mar/13 ]

I don't think that this works as intended because if you look next to the exact coordinates (next to all those numbers) there are parenthesis with an integer of your x/z. If x = -849. 21371, the integer will be 850, but if z = 360.78782 then the integer will be 360. For some reason if the coordinate is negative, it will add one to make it an integer. I think it's still a bug.

Comment by Kumasasa [ 16/Dec/12 ]

Please take a closer look at the coordinates.

The coordinates mark the corners of the blocks.
If you omit the fractinonal digits, you land always at the center of the nearest block (seen in +x, +z direction):

  • If you teleport to 1 / y / 1, you land at 1.5 / y /1.5
  • If you teleport to -1 / y / -1 you land at -0,5 / y / -0.5

but if you specify the fractinonal digits, you land excactly at given coordinates:

  • If you teleport to 1.0 / y / 1.0, you land at 1.0 / y /1.0
  • If you teleport to -1.0 / y / -1.0 you land at -1.0 / y / -1.0
Generated at Sun Jan 12 12:05:46 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.