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

Large numbers in "distance" target selector argument freeze game

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.13.1
    • None
    • Unconfirmed

      When using a large number in the "distance" target selector argument the internal server seems to lock up, not accepting any other commands.

      To reproduce, create a new world and run the following command:

      /execute as @e[distance=..100000000] run say hi

      This would let every entity in the loaded world say "hi", but instead one can observe that the internal server locks up (which can e.g. be seen from the fact that you cannot write in chat or execute commands anymore or that entities aren't processing etc.).

      Normally I would expect that such a command is executed very quickly (especially in a freshly created world), as the large "distance" target selector argument specified as a half-open interval would target every entity just like "@e" would. Even if the area for targeting entities in is very large, only loaded entities can be targeted, so I would assume that checking the distance of each of those entities is a quickly executed task.

            Unassigned Unassigned
            RimaNari RimaNari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: