variables: {diamond.on.%player%} = true options: diament: 100% mine of stone: chance of {@diament} {diamond.on.%player%} is true: give 1 diamond to player send "&fZnalazles &6diameny&f!" stop command /zmiendrop : trigger: arg 1 is "diamnet": if {diamond.on.%player%} is true: set {diamond.on.%player%} to false send "&fWylaczyles drop &6diamentu!" if {diamond.on.%player%} is false: set {diamond.on.%player%} to true send "&fWlaczyles drop &6diamentu!" command /drop: trigger: wait 1 tick open chest with 3 rows named "&6DROP Z KAMIENIA!" to player {diamond.on.%player%} is true: format slot 0 of player with diamond named "test" to close then run "/zmiendrop diamnet" {diamond.on.%player%} is false: format slot 0 of player with redstone named "test" to close then run "/zmiendrop diamnet"