Item Attributes

onDroppedByPlayer

This attribute defines the script that is executed when the item is dropped by the player.

Examples

onDroppedByPlayer[0] = "player.sendMessage('Dropped my item!');";