#Gamble options: P: &e>&aGamble&e<&9 OpPerm: gamble.admin PM: &4You don't have the required permission, scrub. command /gamble : permission: {@OpPerm} permission message: {@PM} trigger: if arg 1 is "enable": set {gamble} to true broadcast "{@P} has been enabled by: &6%command sender%" loop all players: execute console command "/playsound random.levelup %loop-player%" if arg 1 is "disable": set {gamble} to false broadcast "{@P} has been disbled by: &6%command sender%" loop all players: execute console command "/playsound mob.blaze.death %loop-player%" on mine of coal ore: if {gamble} is true: set block to air chance of 50%: drop 1 coal stop trigger chance of 40%: drop 2 coal stop trigger chance of 10%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) give {_player} 1 coal message "{@P} You have been given &01 coal &9from a random player!" to {_player} stop trigger on mine of iron ore: {gamble} is true: set block to air chance of 70%: drop 1 iron ore stop trigger chance of 20%: drop 2 iron ore stop trigger chance of 5%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) set {_heal} to 1 heal {_player} by {_heal} message "{@P} You have been healed 1 &4heart &9from a random player!" to {_player} stop trigger chance of 5%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) give {_player} 1 iron ore message "{@P} You have been given 1 &firon ore&9 from a random player!" to {_player} stop trigger on mine of gold ore: {gamble} is true: set block to air chance of 50%: drop 1 gold ore stop trigger chance of 15%: drop 3 gold ore stop trigger chance of 15%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) set {_heal} to 1 heal {_player} by {_heal} message "{@P} You have been healed 1 &4heart &9from a random player!" to {_player} stop trigger chance of 10%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) give {_player} 1 gold ore message "{@P} You have been given 1 &6gold ore&9 from a random player!" to {_player} stop trigger chance of 10%: cancel event damage player by 1 heart stop trigger on mine of diamond ore: if {gamble} is true: set block to air chance of 30%: drop 1 diamond stop trigger chance of 20%: drop 2 diamonds stop trigger chance of 15%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) set {_heal} to 1 heal {_player} by {_heal} message "{@P} You have been healed 1 &4heart &9from a random player!" to {_player} stop trigger chance of 15%: set block to air set {players::*} to all players set {_player} to (random element out of {players::*}) give {_player} 1 diamond message "{@P} You have been given 1 &bdiamond &9from a random player!" to {_player} stop trigger chance of 20%: set block to air damage player by 1 heart stop trigger