mojira.dev
MC-222652

The /tp command can be executed locally downward but not upward past Y = 20,000,000

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:

  1. Use this command:

    /tp @s ~ 19999999 ~
  2. Fly up until the player is at, or above 20,000,001

  3. Use this command:

    /tp @s ~ ~1 ~

    → βœ” The player will get the message "Invalid position for teleport"

  4. 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 the player moves, the server clamps the y position between +-2*10^7, but the client doesn't know that.

When teleporting toΒ ~ ~-1 ~, the client doesn't receive absolute coordinates, but just the information to teleport 1 block lower.

This seems "fixed" in 24w36a (both upwards and downwards are successed), but not fixed again in 24w39a.

pietropil1

(Unassigned)

Confirmed

Commands

command, tp

21w14a, 1.17 Pre-release 3, 1.17 Release Candidate 2, 1.17, 1.18.2, 1.21, 1.21.1, 24w39a

Retrieved