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

Define multiline replacements #53

Closed MysteryBlokHed closed 3 years ago

MysteryBlokHed commented 3 years ago

The ability to define multiline replacements with :def would make it a lot more useful. For example, if you want to make a file that lets people configure your pack by defining functions, having a definition that inserts a few lines to set up the function. Something like this:

:mdef MAKE_VARS
:var var1 .= 0
:var var2 .= 1
:enddef

Replacement should still work as single-line replacements do, replacing any occurrence of the replacement name (in this case MAKE_VARS).

MysteryBlokHed commented 3 years ago

59 is like multiline replacements with more use.