command /akcesoria: aliases: akce trigger: open chest with 3 rows named "&8Dodatki" to player wait 1 tick format slot 16 of player with iron bars named "&cBrak Unikatu" to close if {dodatki.tarcza.%player%} is true: format slot 10 of player with {dodatki.item.tarcza.%player%} with lore "&cAKTYWNY" and "%{dodatki.lore.tarcza.%player%}%" to close then run [make player execute command "remdodatek tarcza"] else: format slot 10 of player with iron bars named "&cBrak Tarczy" to close if {dodatki.rekawica.%player%} is true: format slot 11 of player with {dodatki.item.rekawica.%player%} with lore "&cAKTYWNY" and "%{dodatki.lore.rekawica.%player%}%" to close then run [make player execute command "remdodatek rekawica"] else: format slot 11 of player with iron bars named "&cBrak Rekawicy" to close if {dodatki.naszyjnik.%player%} is true: format slot 12 of player with {dodatki.item.naszyjnik.%player%} with lore "&cAKTYWNY" and "%{dodatki.lore.naszyjnik.%player%}%" to close then run [make player execute command "remdodatek naszyjnik"] else: format slot 12 of player with iron bars named "&cBrak Naszyjnika" to close