Item Attributes

onBlockStartBreak

This attribute defines the script that is executed right before the item breaks a block.

Examples

onBlockStartBreak[0] = "player.sendMessage('Harvested a block!');";