Item Attributes
onHitEntity
This attribute defines the script that is executed when an entity is hit by the item. It is called after the entity is damaged.
Examples
onHitEntity[0] = "player.sendMessage('Hit an entity!');";
This attribute defines the script that is executed when an entity is hit by the item. It is called after the entity is damaged.