MysteryBlokHed / databind

Expand the functionality of Minecraft Datapacks.
https://databind.rtfd.io/en/stable
GNU General Public License v3.0
4 stars 0 forks source link

Add `:call`-like keyword for predicates and tags #41

Open MysteryBlokHed opened 3 years ago

MysteryBlokHed commented 3 years ago

A keyword similar to :call for predicates and tags would be a good addition since they use a similar syntax of namespace:thing, such as:

execute if predicate namespace:predicate
execute as @a[predicate=namespace:prediate]

or:

kill @e[type=#namespace:tag]

Support for tags or the second form of predicate might be harder due to the way that Databind tokenizes by spaces, but predicates should be possible just by copy+pasting and tweaking the code for :call.