Guide 1 Docs 2 Reference 3

Function of BlockSpec

blockSpec.on_break

Something broke it. Answers "none", "table" or a drops list; fails closed to the definition's drops.

blockSpec.on_break((block: BlockAt, player: Player?, by: Breaker, base: (...any) -> any) -> Drops?) → ?

Parameters

(blockBlockAt, player: Player?, by: Breaker, base: (...any) -> any) -> Dropsoptional

Returns

?