Item Attributes

onEaten

This attribute defines the script that is executed after the item is eaten.

Examples

onEaten = "player.sendMessage('Eaten my item!');";