player_placing_block

View on GitHub

Syntax

__on_player_placing_block(player, item_tuple, hand, block) -> ...

Triggered when player places a block, before block is placed in the world.

This event can be cancelled by returning 'cancel', which prevents the block from being placed.