mojira.dev
MC-125045

Entity selector range arguments are ambiguous and parse incorrectly

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.

Comments 1

This is still the case in 18w08b
I'd also suggest changing the example command, which now looks like: /give @a[distance=0..10 stone]
as it's not valid.

[Mod] redstonehelper

(Unassigned)

Confirmed

(Unassigned)

Minecraft 18w06a, Minecraft 18w08b, 21w08b, 24w38a

Retrieved