Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-172374

Can teleport to invalid y coordinates and crash the game

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w11a
    • 20w07a, 20w08a
    • None
    • Confirmed
    • Commands, Crash
    • Very Important

      The bug

      Before 20w06a (the first Nether Update snapshot), teleporting to coordinates in any direction was unrestricted on coordinate value, which could cause kick or game crash when trying to teleport to extremely large values.

      This was temporarily fixed in 20w06a, but the fix prevented from teleporting to negative coordinates (MC-170951), and was reverted more than necessary.

      Since 20w07a, this issue still occurs only when teleporting to extremely large y coordinates (the value for x and z is now properly bounded).

      How to reproduce

      /tp ~ 1000000000000 ~
      

      Game freezes.

            mgatland [Mojang] Matthew Gatland
            Johnibur [Helper] Johnibur
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: