Right now, making "custom selectors" involves a lot of /execute forking and subcommands that most people don't want to do. On top of that, a selector will check through the list of entities when run every time, which makes them very laggy.
The solution: Saved Selectors! Add a command like /target or /selector that will create a new selector with a name like @zombies or @tagged.
/selector add <selector> <entities> would add entities to a selector via an existing selector by remembering their UUID,
/selector remove <selector> <entities> would take entities (if they are in the selector) out of it,
and /selector clear <selector> would delete one of these selectors entirely.
This would finally add "and"/"or" statements, but mainly would make selectors less laggy. Instead of searching all entities again and again every time you use @e[type=zombie] when there is no way they would have changed, just use /selector add zombies @e[type=zombie] and reuse the @zombies selector. Much less CPU needed!
Please sign in to leave a comment.
2 Comments