Block Attributes

onClicked

This attribute defines the script that is executed when a player left clicks the block.

Examples

onClicked[0] = "player.sendMessage('You clicked me.');";