#kill any entity outside of selected areas?

1 messages · Page 1 of 1 (latest)

granite mulch
#

I don't want to use distance because it's more of a sphrical area than a cube. I want to use something like execute at @s run kill @e[distance=..5] but for selected area instead of distance, similar to how /fill work. From point a to point b kinda way.

granite mulch
#

Well, outside and inside of a selected area

#

I need for both

queen canopy
#

distance does search a spherical area

#

Oh I see, your phrasing can be read two ways

#

You can use the dx, dy, and dz target select arguments to find all entities inside and intersecting a volume

#

They use the executing position as one corner, and then tage integers to determine the distance to the other corner

granite mulch
#

Oh, ok, I get it. So, I use positioned to select the beginning point and dx dy dz as the end point right?

queen canopy
#

Yep

granite mulch
#

Ok, so if I want to kill entity with this, I use
execute positioned ~10 ~10 ~10 run kill @e[type=zombie,dx=-10,dy=-10,dz=-10] right?

#

oops sorry dx=-20,dy=-20,dz=-20

queen canopy
#

That is a valid command

granite mulch
#

thank you so much for the help