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

'/spreadplayers under' does not prevent invalid values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16 Pre-release 3
    • 20w21a
    • None
    • Confirmed
    • Commands
    • Low

      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

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

              Created:
              Updated:
              Resolved:
              CHK: