Block Scripts: Chunk Generation Entry Points
Back
You can define these functions in your block Lua scripts
and they will be called by the engine.
They are called in the Chunk Generation Lua state.
Block Lua scripts are Lua scripts found in the WorldNodes/Nodes
directory (and its subdirectories) of your package.
Called During Initialization
void __chunk_gen_init();
Called to Generate a Chunk
void __main(); (mandatory)
Called to Extract Custom Data
string __main_dummy(string arg);