Item Attributes
onUpdate
This attribute defines the script that is executed every tick if the item is in the player's inventory.
Examples
onUpdate[0] = "player.sendMessage('SPAM!');";
This attribute defines the script that is executed every tick if the item is in the player's inventory.