Item Attributes

onBlockStartBreak

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

Examples

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