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