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

Spreadplayers drops tps when used in an area with a lot of invalid blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 1.19.3, 24w39a
    • Windows 10, Java 8 u211
    • Confirmed
    • Commands, Performance

      Summary:

      I know there was an issue with spreadplayers causing the server to drop to 3 ticks, but this issue is regarding the behavior where the server struggles when spreadplayers is used in an area with a little/no valid blocks to place players on (such as in an ocean). In my context, I am using this command to spread some entities apart semi-randomly to check for specific types of blocks, but when players cross into oceans, the server struggles.

       

      To reproduce:

      Use the spreadplayers command with a spread distance that encompasses only invalid blocks (water, lava, and I assume void)

       

      Extra info:

      I am assuming this is happening because it is attempting to find a valid block, then when it fails, it tries again. Though I don't know for sure if this is a bug or just a known side affect of intentional behavior.

       

      Now at this point I have to admit that this is walking the line of bug report, and suggestion, but I assume a fix to this would be to add an argument which limits the check to one pass (or even a user defined amount). So in my example, it would only check once in open waters, then stop.

       

      Sorry if this has already been reported, I could not find anything specifically related to this.

            Unassigned Unassigned
            jacob.exe Jacob White
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              CHK: