Adding preprocessor for loops (sort of like if/else statements in #108) that iterate over values from the vars.toml file would mean an easier way of customizing some aspects of a datapack. For example, if you wanted users to be able to provide a list of commands, then add something before each of those, you could have a vars.toml file like this:
Adding preprocessor for loops (sort of like if/else statements in #108) that iterate over values from the
vars.toml
file would mean an easier way of customizing some aspects of a datapack. For example, if you wanted users to be able to provide a list of commands, then add something before each of those, you could have avars.toml
file like this:And code like this:
Which would compile to: