Guide 1 Docs 2 Reference 3

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) -> ()required

Used in