Confusing error message for relative coordinates with too high numbers
The bug
When you enter a too high relative number for a command the error message calls the sum of your position and the relative teleport value "the number you entered" instead of the relative value you entered.
How to reproduce
- Go to a x coordinate other than 0
- Use the following command
/tp @p ~60000000.0 ~ ~
→ It says as number you entered the sum
Created Issue:
Confusing error message for relative coordinates with too high numbers
The bug
When you enter a too high relative number for a command the error message calls the sum of your position and the relative teleport value "the number you entered" instead of the relative value you entered.
How to reproduce
- Go to a x coordinate other than 0
- Use the following command
/tp @p ~60000000.0 ~ ~→ It says as number you entered the sum
Added Attachments:
Added Affects Versions: 1.9.4
Added Affects Versions: 16w20a
Added Affects Versions: 1.10.1
Added Affects Versions: 1.10.2
Added Affects Versions: 16w40a
Added Affects Versions: 1.11
Added Affects Versions: 1.11.2
Added Affects Versions: 1.12-pre3
Added Affects Versions: 1.12-pre5
Added Affects Versions: 1.12
Changed Description:
The bug
When you enter a too high relative number for a command the error message calls the sum of your position and the relative teleport value "the number you entered" instead of the relative value you entered.
How to reproduce
- Go to a x coordinate other than 0
- Use the following command
/tp @p ~60000000.0 ~ ~→ It says as number you entered the sum
Added Affects Versions: 1.12.1
Added Affects Versions: 1.12.2-pre2 1.12.2-pre1
Can confirm for 1.9.4
Can confirm for 16w20a
Can confirm for 1.10.1.
Can confirm for 16W40A
Can confirm for 1.11
Can confirm for 17w06a.
Can confirm for 17w14a.
What happens: when you try to do a relative teleport the sum of your current position and the relative coordinate you entered is calculated and if it is >30000000 it will throw the error (with the sum of the coordinates because it is higher than 30000000).
An example:
I tp myself to 0 100 -1 (will be 0.5 100 -0.5 in the game) and then I relative tp myself to ~ ~ 30000000 nothing is wrong, but when I relative tp to ~ ~30000000 from 0 100 1 (will be 0.5 100 1.5 in the game) I get the error message because 30000000+1>30000000.
Can confirm for pre 1 and pre 2.
@Tom Udding would you like to become the reporter of this report?
@Marcono1234 sure.
Done =)
This is no longer an issue in the latest snapshot (17w45a). When you use a number that was previously too high it will teleport you to the world border (a few blocks outside it to be precise).
A new thing I noticed when doing this: it'll show the wrong 'Teleported [player] entities to [coordinate]'