Item Attributes

onBlockDestroyed

This attribute defines the script that is executed when the player destroys a block with the item.

Examples

onBlockDestroyed = "player.sendMessage('Destroyed a block!');";