1

I can select entities (or players) who are in a volume easily.

@e[x=0,dx=20,y=0,dy=256,z=20,dz=1]

How do I select all entities who are not in a given volume?


I'm giving players in a certain room a tag, doing stuff with the tag, and want to remove it when they leave.

  • You're already using tags, why not just use tag=!? – Fabian Röling Jun 2 at 23:20
  • If I'm giving players in the room tag foo, what do you mean? – SIGSTACKFAULT Jun 2 at 23:22
  • @a[tag=!foo] . – Fabian Röling Jun 2 at 23:24
  • @FabianRöling Yep, dupe. Only googled for "volume", not "area". – SIGSTACKFAULT Jun 2 at 23:25
  • /tag @a[tag=!foo] remove foo seems redundant. – SIGSTACKFAULT Jun 2 at 23:26