# ZABEZPIECZENIE PRZECIWKO BAGOWANIU SKRZYŃ on inventory open: set {BLOCK::%player%} to true stop on inventory close: set {BLOCK::%player%} to false stop on join: set {Diamond::%player%} to true set {BLOCK::%player%} to false command /drop: trigger: if {BLOCK::%player%} is false: wait 3 ticks open chest with 3 rows named "&3MENU DROPU" to player wait 2 ticks if {Diamond::%player%} is true: format slot 0 of player with 1 of diamond named "&3Diament" with lore "&7Drop: &aWlaczony" to run [make player execute command "5x diamond"] else: format slot 0 of player with 1 of diamond named "&3Diament" with lore "&7Drop: &cWylaczony" to run [make player execute command "5x diamond"] # DALEJ CHYBA SAM BĘDZIESZ UMIEĆ :) else: close player's inventory send "&4ERROR. &cBlod przy otwieraniu GUI" stop command /5x []: trigger: if arg 1 is "diamond": if {Diamond::%player%} is true: close player's inventory set {Diamond::%player%} to false execute player command "drop" stop else: close player's inventory set {Diamond::%player%} to true execute player command "drop" stop