Code:
on rightclick on white wool:
if distance between player and event-block is more than 3:
stop
else:
set targeted block to air
chance of 7%:
add 5 iron ingot named "&6&lMetal Frags" to inventory of player
chance of 22%:
add 8 diamond named "Shot Gun Shell" to inventory of player
chance of 23%:
add 7 oak wood planks to inventory of player
chance of 7%:
add 1 wooden shovel named "&6&lDirtiest Shovel" to inventory of player
chance of 13%:
add 1 Stone sword named "&6&lMachete" to inventory of player
chance of 21%:
add 6 gold ingot named "&6&lSulfur" to inventory of player
chance of 13%:
add 6 cobblestone to inventory of player
chance of 7%:
add 5 gunpowder named "&6&lGun Powder" to inventory of player
chance of 13%:
add 16 wheat named "&6&lCloth" to inventory of player
chance of 10%:
add 7 seeds named "&6&lLow Grade" to inventory of player
chance of 8%:
add 25 coal named "&6&lCharcoal" to inventory of player
chance of 5%:
add 5 gray dye named "&6&lSMG Body" to inventory of player
chance of 8%:
add 4 pink dye named "&6&lSemi Automatic Body" to inventory of player
chance of 10%:
add 3 Magenta dye named "&6&lRifle Body" to inventory of player
chance of 24%:
add 3 nether quartz named "&6&lHigh quality metal" to inventory of player
chance of 20%:
add 8 sugar named "&6&l5.56 Rounds" to inventory of player
chance of 1%:
add 1 golden apple named "&6&lHydra" to inventory of player
wait 3 second
set block at event-location to white wool
a random # for chance and add to players inventory