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

Error for using a /spreadplayers "under" value lower than the world's minimum height is misleading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 22w03a, 1.18.2, 22w17a, 23w06a, 1.19.4, 1.20 Release Candidate 1, 1.20, 23w51b
    • None
    • Confirmed
    • Commands, Text
    • Low
    • Platform

      The bug

      The error for specifying an "under" value in the /spreadplayers command that is less than the minimum world height (-64) is misleading. The error, "Invalid maxHeight -65; expected higher than world minimum -64" uses "higher than", which implies that this value is exclusive. However, the command does allow for inputs equal to the minimum world height.

      How to reproduce

      1. Run the command /spreadplayers ~ ~ 2 2 under -64 false @s
        Command runs successfully
      2. Run the command /spreadplayers ~ ~ 2 2 under -65 false @s
        Error implies that -64 is excluded from the range of acceptable inputs

      Expected behavior

      The error message for using an invalid "under" value would imply that "under" values equal to the minimum world height would be valid (for example, by using "at least").

            Unassigned Unassigned
            markderickson [Mod] markderickson
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: