Item Attributes

onRightClick

This attribute defines the script that is executed when the player right clicks with the item.

Examples

onRightClick[0] = "player.sendMessage('Right clicked with my item!');";