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

Entity selector range arguments are ambiguous and parse incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w06a, Minecraft 18w08b, 21w08b
    • None
    • Confirmed
    • (Unassigned)

      Entity target selectors use two dots (..) for range arguments. With floating point values, this creates ambiguities because of the decimal separator (.). Amongst others, the following issues are caused by this:

      • 0...10 - is that "0. to 10" or "0 to .10"? It's not immediately obvious.
      • 0....1 causes an error when it should mean "0. to .1"
      • 0...1. causes an error when it should mean "0. to 1."

      These can be tested in commands such as /give @a[distance=0..10] stone.

      Suggested fix: use something other than two dots to distinguish the two values.

            Unassigned Unassigned
            redstonehelper [Mod] redstonehelper
            Votes:
            8 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: