Guide 1 Docs 2 Reference 3

Function of World

world.on_block_break

What the survival tick did. Observe-only: the world has already changed, and what the callback returns is not read.

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

Parameters

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

Returns

Connection

Used in