Terra (Fabric/Forge/Paper)

Terra (Fabric/Forge/Paper)

74.2k Downloads

Debugging enhancements

dfsek opened this issue ยท 0 comments

commented

Add a debugBlock TerraScript function, and split up the master config.yml's debug option.

Debug options split

  • debug.commands - Enables/disables debug commands.
  • debug.log - Enables/disables debug-level logging, including the TerraScript print function.
    • Add registry dumping to debug logging; after pack reloads, dump the values of all registries if debug.log is enabled, along with information about each entry (such as alive/dead status, accesses, etc.)
  • debug.profiler - If enabled, automatically start the profiler on load.
  • debug.script - Enables/disables the TerraScript debugBlock function.

debugBlock TerraScript function

Generates a block at a location only if debug.script is enabled. If the option is not enabled, debugBlock function entries are not to be included at all in the compiled script.