Guide 1 Docs 2 Reference 3

Function of World

world.on_block_place

Tells after a block was placed, with its canonical name. Observe-only; player is nil when nobody placed it or they left.

world.on_block_place(fn: (player: Player?, pos: Vec3, block: string) -> ()) → Connection

Parameters

fn(player: Player?, pos: Vec3, block: string) -> ()required

Returns

Connection

Used in