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

Teleporting things to Infinity / NaN is possible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 17w45b, Minecraft 17w46a
    • Fix Version/s: Minecraft 17w47a
    • Environment:
      Windows 7
    • Confirmation Status:
      Confirmed

      Description

      The bug

      The /teleport doesn't seem to check the number bounds anymore. Compare to 1.12, teleporting past 30 million is not possible and 1e1000 is not considered a valid value.

      You can also teleport things to NaN, which also fails to parse as a valid coordinate in 1.12.

      How to reproduce

      Issue the following commands:

      /summon armor_stand
      /teleport @e[type=armor_stand] ~ ~ 1e1000
      

      Teleported Armor Stand to something, something, Infinity appears in chat. The armor stand does not move.
      → The server freezes (chunkloading doesn't work, chat unresponsive, you know the drill)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dinnerbone [Mojang] Nathan Adams
                Reporter:
                quaternary Matthew
              • Votes:
                5 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: