Item Attributes

onUse

This attribute defines the script that is executed when the player right clicks a block with the item .

Examples

onUse[0] = "player.sendMessage('Right clicked a block!');";