Function of World
world.on_populate
Each chunk the overworld terrain made, once, after it made it.
world.on_populate(fn: (chunk: Chunk) -> ())
Parameters
fn(chunk: Chunk) -> ()Used in
trees and sea level 63. Scripts only add to it (`world.on_populate`).Server settings`world.on_populate` are single-handler setters: a later call replaces theAPI basicsworld.on_populate(function(chunk) end) -- add to the overworld's own chunks; see "populating the overworld"Blocks and terrainworld.on_populate(function(chunk) end) -- once per chunk the overworld terrain made, after it made itBlocks and terrain