variables: {cobble} = true {stan} = ON command /cobble: trigger: open chest with 3 rows to player format slot 0 of player with 1 of black stained glass pane to close format slot 1 of player with 1 of black stained glass pane to close format slot 2 of player with 1 of black stained glass pane to close format slot 3 of player with 1 of black stained glass pane to close format slot 4 of player with 1 of black stained glass pane to close format slot 5 of player with 1 of black stained glass pane to close format slot 6 of player with 1 of black stained glass pane to close format slot 7 of player with 1 of black stained glass pane to close format slot 8 of player with 1 of black stained glass pane to close format slot 9 of player with 1 of black stained glass pane to close format slot 10 of player with 1 of black stained glass pane to close format slot 11 of player with 1 of lime stained glass pane to close then run [execute player command "cbble on"] format slot 12 of player with 1 of black stained glass pane to close format slot 13 of player with 1 of cobblestone with lore "&aCobble &c%{stan}%" to close format slot 14 of player with 1 of black stained glass pane to close format slot 15 of player with 1 of red stained glass pane to close then run [execute player command "cbble off"] format slot 16 of player with 1 of black stained glass pane to close format slot 17 of player with 1 of black stained glass pane to close format slot 18 of player with 1 of black stained glass pane to close format slot 19 of player with 1 of black stained glass pane to close format slot 20 of player with 1 of black stained glass pane to close format slot 21 of player with 1 of black stained glass pane to close format slot 22 of player with 1 of black stained glass pane to close format slot 23 of player with 1 of black stained glass pane to close format slot 24 of player with 1 of black stained glass pane to close format slot 25 of player with 1 of black stained glass pane to close format slot 26 of player with 1 of black stained glass pane to close stop command /cbble []: trigger: if arg 1 is "off": set {cobble} to false set {stan} to "OFF" send "&cWylaczyles drop &8Cobblestone" stop if arg 1 is "on": set {cobble} to true set {stan} to "ON" send "&aWlaczyles drop &8Cobblestone" stop on break of stone: if {cobble} is false: cancel event set event-block to air stop