Item Attributes

onBlockDestroyed

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

Examples

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