Item Attributes

onLeftClickPlayer

This attribute defines the script that is executed when the player left clicks a player with the item. It is called before the player is damaged.

Examples

onLeftClickPlayer[0] = "player.sendMessage('Left clicked a player!');";