DataPack Configuration
The configuration
function allows configuring the output of the generated datapack.
Example
This will configure the JSON output to be pretty printed with two spaces for indentation.
The available configuration options are:
prettyPrint
- Whether to pretty print the JSON. Default isfalse
.prettyPrintIndent
- The string to use for indenting when pretty printing. Only whitespace characters are allowed. Default is empty string.generatedFunctionsFolder
- The folder where the generated functions are stored. Defaults to"generated_scopes"
.generateCommentOfGeneratedFunctionCall
- Whether to generate a comment when an implicit generated function is called. Default istrue
.
Configuring a datapack is pretty useful for debugging.