Guide 1 Docs 2 Reference 3

Function of BlockSpec

blockSpec.on_place

A player put it down; block.data is empty then, ready to be filled.

blockSpec.on_place((block: BlockAt, player: Player?, base: (...any) -> any) -> ()) → ?

Parameters

(blockBlockAt, player: Player?, base: (...any) -> any) -> ()required

Returns

?