[MC-1988] Teleport command doesn't work good in the command block Created: 02/Nov/12  Updated: 26/May/14  Resolved: 14/Jan/13

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

Type: Bug
Reporter: Jose Luis Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Environment:

Windows 7 64x


Attachments: PNG File Foto bug 2.png     PNG File Foto bug.png    
Issue Links:
Duplicate
duplicates MC-4794 Teleporting to negative coordinates i... Resolved
Confirmation Status: Unconfirmed

 Description   

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.



 Comments   
Comment by Harlan Power [ 26/May/14 ]

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

Comment by Tails [ 04/Dec/12 ]

Duplicate of MC-2849.

Comment by Res [ 20/Nov/12 ]

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.

Comment by Cat [ 05/Nov/12 ]

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.

Comment by Res [ 02/Nov/12 ]

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.

Comment by Kiilek Rekaur [ 02/Nov/12 ]

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.

Generated at Sun Jan 12 11:56:19 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.