Item Attributes
onLeftClickLiving
This attribute defines the script that is executed when the player left clicks a living with the item. This is executed before the living is damaged. If the living is a player, onLeftClickPlayer is executed instead.
Examples
onLeftClickLiving[0] = "player.sendMessage('Left clicked a living!');";