mojira.dev
MC-121755

distance selector doesn't fully replace r and rm command selectors

Before I could use

/kill @e[rm=0]

to kill everything except me and entities at same position as me. When I run

/kill @e[distance=0..]

it counts 0 distance as well. I tried

/kill @e[distance=!0]

but argument here is invalid.
There should be multiple selectors for distance with working distance=!X to give ability of working as before. With distance=!X..Y we can replace:

@e[rm=1,r=3]

with:

@e[distance=..3, distance=!..1] or @e[distance=1..3,distance=!1]

Comments 3

I've tried /kill @e[distance=0.1..], which seems to have the behavior you're looking for.

Unfortunately this won't kill something closer than 0.1. Using 0.000001.. is risky because of rounding float/double numbers.

unlike rm, distance is inclusive, use 0.0001 as minimum instead.

Irbis

(Unassigned)

Unconfirmed

Minecraft 17w45a

Retrieved