Item Attributes

onEaten

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

Examples

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