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

Entity selector range arguments are ambiguous and parse incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 18w06a, Minecraft 18w08b
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              redstonehelper [Mod] redstonehelper
            • Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: