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