Item Attributes

onUsing

This attribute defines the script that is executed every tick if the item is in use (e.g. when a sword is blocking).

Examples

onUseOnEntity[0] = "player.sendMessage('Using my item!');";