variables: cobble::%player% = true command /cobblestone []: trigger: if arg 1 is not set: wait 2 ticks open chest with 1 row named "&6&lCobblestone" to player wait 2 ticks set {_s} to 0 loop 3 times: format slot {_s} of player with gray stained glass named " " to close add 1 to {_s} format slot 3 of player with red dye named "&c&lWYLACZ DROP" to close then run [execute player command "cobblestone off"] format slot 4 of player with gray stained glass named " " to close format slot 5 of player with green dye named "&a&lWLACZ DROP" to close then run [execute player command "cobblestone on"] set {_s} to 6 loop 3 times: format slot {_s} of player with gray stained glass named " " to close add 1 to {_s} if arg 1 is "off": if {cobble::%player%} is true: set {cobble::%player%} to false send "&8&l>> &cWylaczyles drop cobblestone." stop if {cobble::%player%} is false: send "&8&l>> &cDrop cobblestone jest juz wylaczony." stop if arg 1 is "on": if {cobble::%player%} is false: set {cobble::%player%} to true send "&8&l>> &aWlaczyles drop cobblestone." stop if {cobble::%player%} is true: send "&8&l>> &aDrop cobblestone jest juz wlaczony." stop on mine of stone or cobblestone: if {cobble::%player%} is false: cancel event set event-block to air