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

'/spreadplayers under' does not prevent invalid values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w21a
    • Fix Version/s: 1.16 Pre-release 3
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Trivial

      Description

      The bug

      The /spreadplayers ... under option which was added in 20w21a does prevent invalid maxHeight values where it is never able to spread players, when parsing the arguments.
      These are values <= 0.
      Additionally it does not prevent values > 256 even though they are effectively the same as 256.

      Reproduction steps

      1. Enter the following in chat
        /spreadplayers ~ ~ 1 10 under -1 false @s
        

        The command is considered valid

      2. Try to run the command
        It fails, as expected

        Attachments

          Activity

            People

            Assignee:
            grum [Mojang] Grum (Erik Broes)
            Reporter:
            marcono1234 [Mod] Marcono1234
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: