Add preprocessor if statements #108
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
preprocessor
Related to the preprocessor
Adding something similar to C's
#if
and#endif
directives would make it easier to enable or disable blocks of code. A boolean could be read from thevars.toml
file, and then the code contained would only be compiled if the condition is true. Something like this:With a
vars.toml
like this:If you have a large project, this could make it easier for users to only enable the parts that they expect to use, meaning less functions come up in the in-game autocomplete and a smaller datapack size.
The text was updated successfully, but these errors were encountered: