on right click on gravel: if player's tool is {@narzedzie_gravel} of Looting 3: {gravelList::*} contains location of clicked block {stolList::*} contains location of block under clicked block remove location of event-block from {gravelList::*} set {_gravel} to a random integer between 2 and 7 set {_proch} to a random integer between 3 and 5 cancel event send "3" drop {_gravel} of flint drop {_proch} of gunpowder set block to air else if player's tool is {@narzedzie_gravel} of Looting 2: {gravelList::*} contains location of clicked block {stolList::*} contains location of block under clicked block remove location of event-block from {gravelList::*} set {_gravel} to a random integer between 2 and 6 set {_proch} to a random integer between 2 and 5 cancel event send "2" drop {_gravel} of flint drop {_proch} of gunpowder set block to air else if player's tool is {@narzedzie_gravel} of Looting 1: {gravelList::*} contains location of clicked block {stolList::*} contains location of block under clicked block remove location of event-block from {gravelList::*} set {_gravel} to a random integer between 1 and 5 set {_proch} to a random integer between 2 and 4 cancel event send "1" drop {_gravel} of flint drop {_proch} of gunpowder set block to air else if player's tool is {@narzedzie_gravel}: {gravelList::*} contains location of clicked block {stolList::*} contains location of block under clicked block remove location of event-block from {gravelList::*} set {_gravel} to a random integer between 1 and 4 set {_proch} to a random integer between 1 and 4 cancel event send "bez" drop {_gravel} of flint drop {_proch} of gunpowder set block to air