Item Attributes

onUpdate

This attribute defines the script that is executed every tick if the item is in the player's inventory.

Examples

onUpdate = "player.sendMessage('SPAM!');";