on mine of stone: chance of 1%: cancel event set block to air give 1 diamond to player stop chance of 1.5%: cancel event set block to air give 1 emerald to player stop chance of 2%: cancel event set block to air give 1 iron ingot to player stop chance of 3%: cancel event set block to air give 1 gold ingot to player stop chance of 5%: cancel event set block to air give 1 coal to player stop chance of 6%: cancel event set block to air set {_amount} to random integer between 4 and 8 give {_amount} of redstone to player stop chance of 6%: cancel event set block to air set {_amount} to random integer between 4 and 8 give {_amount} of lapis to player stop on mine of any ore: cancel event set block to air stop on mine of emerald ore: cancel event set block to air stop