Kore icon indicating copy to clipboard operation
Kore copied to clipboard

[FEATURE] Allow definining multiple selectors of the same type

Open Aeltumn opened this issue 9 months ago • 1 comments

What module does this feature apply to?

DSL

Feature description

I looked through the code and couldn't find this as a feature, but I'm trying to replicate a command in a datapack that goes:

/execute as @a[tag=!foo,tag=!bar,tag=!baz] run say test

But it appears that SelectorNbtData only lets you define one requirement per type. Vanilla simply parses all predicates in a row and adds them to a shared big predicate, so it allows repeating types. It does store whether a specific type appears at all for optimization reasons, but it lets you repeat them too.

My issue is not duplicated

  • [X] This is not a duplicate

Aeltumn avatar May 12 '24 20:05 Aeltumn