Function of World
world.on_generate
Called for a chunk each time it comes into memory, in a script world; it must make the same blocks every time.
world.on_generate(fn: (chunk: Chunk) -> ())
Parameters
fn(chunk: Chunk) -> ()Used in
world.on_generate(function(chunk)Guide: Your first packblocks deep. `world.on_generate` registers a function that Citadel callsGuide: Your first packworld.on_generate(function(chunk)Guide: Coin rushworld.on_generate(function(chunk)Guide: Coin rushworld.on_generate(function(chunk)Guide: Parkour, a room eachA room's `generate` works like `world.on_generate`: it must make the sameGuide: Parkour, a room eachworld.on_generate(function(chunk)Guide: Build a cottageworld.on_generate(function(chunk)Guide: Build a cottage