The teleport command fails when teleporting the player above the y block limit of 20,000,000, but it does not fail when teleporting a player to a destination with a lower height from which the player was teleported, despite still having a destination greater than y = 20,000,000.
Steps to Reproduce:
Use this command:
/tp @s ~ 19999999 ~
Fly up until the player is at, or above 20,000,001
Use this command:
/tp @s ~ ~1 ~
→ β The player will get the message "Invalid position for teleport"
Use this command:
/tp @s ~ ~-1 ~
→ β The command will work, despite the destination still having a higher height than 20,000,000
Attachments
Comments 3
When teleporting toΒ ~ ~-1 ~, the client doesn't receive absolute coordinates, but just the information to teleport 1 block lower.
When the player moves, the server clamps the y position between +-2*10^7, but the client doesn't know that.