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

Update documentation examples #10

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

Pull request #7 added a :tag keyword and removed the generate_func_tags config option. Most documentation examples still use files named load.databind and tick.databind, but these files are no longer automatically tagged. Examples should be replaced with single main.databind files using functions tagged with :tag, like this:

example/data/example/functions/main.databind

:func load :tag load
tellraw @a "Loaded"
:endfunc

:func tick :tag tick
tellraw @a "Ticking"
:endfunc

Transpiled output should be able to stay the same, assuming that the function names stay the same.