Item Attributes

onStoppedUsing

This attribute defines the script that is executed when the player stopped using the item (releases the right mouse button). For example when the player stopped blocking with a sword.

Examples

onStoppedUsing[0] = "player.sendMessage('Stopped using my item!');";