mojira.dev
MC-122345

dx,dy,dz don't support ranges

using the dx,dy and dz argument selectors does not allow ranges. EDIT: after more testing, I have realized I cannot get the dx,dy,dz selectors to function at all, although they parse

I have realized that there are two different ways you could implement the ranges, signed and unsigned. Unsigned ranges are more intuitive

A signed range would be e.g. @e[dy=-3..7], for 3 blocks below and 7 above, an unsigned range would only allow comparing absolute distance.

Having signed ranges and some way to have range unions (and maybe negations) would be the most powerful way to resolve this

Linked issues

Comments 4

dx, dy and dz have been removed and have been replaced by ranges. Instead of @a[x=1,dx=2], use @a[x=1..2]. So, the bug actually is that dx etc. are parsed and there is no error thrown.

That's not true, dxyz still exist and xyz are not ranges. Otherwise it would be impossible to select entities in a region relative to another entity.

Oh right, remembered that incorrectly. Sorry.

and dx dy dz allowing ranges makes no sense.

Ethan Peace

(Unassigned)

Unconfirmed

command

Minecraft 17w47b

Retrieved