Home
Tutorial
Recipes
Items
Blocks
Tile Entites
GUIs
World Generators
Scripting
Examples
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!');";