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

Specify tags for functions in code #6

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

WIth the current --generate-func-tags argument, function tags in minecraft/tags/functions are generated for functions specified in the config, or the default functions (load and tick). However, it's not currently possible to have multiple functions in one tag with this setup. It should be possible to tag functions in-code instead of having to manually create the tag files when using multiple namespaces or multiple functions that should be tagged.

The syntax could look something like this:

:func example :tag load :tag secondTag
# etc
:endfunc

or:

:func example
:tag load
:tag secondTag
# etc
:endfunc

The second would probably be better since it would allow multiple tags on one function without creating long lines.