options:     koxy-max: 1     refy-max: 6     perly-max: 2 command /schowek:     aliases: /depozyt, /depo     executable by: players     trigger:         open chest inventory with 4 rows named "&6&lSchowek" to player         # Hej! tutaj możesz zmienić opisy przedmiotów.         set {_ench_lore} to "&7Potężne jabłko pełne energii."         set {_golden_lore} to "&7Jabłko do uzupełniania zdrowia."         set {_pearl_lore} to "&7Magiczna perła, teleportuje cię w inne miejsce."         set {_emerald_lore} to "&7Kostki z szmaragdu, symbol bogactwa."         set {_tnt_lore} to "&7Eksplozywny prezent od matki natury."         set {_barrier_lore} to "&7Zamknij to okno."         # Zmienne (nie zmieniaj tutaj nic)         set {_ench_count} to amount of enchanted golden apple named {_ench_name} in player's inventory         set {_golden_count} to amount of golden apple named {_golden_name} in player's inventory         set {_pearl_count} to amount of ender pearl named {_pearl_name} in player's inventory         set {_emerald_count} to amount of emerald block named {_emerald_name} in player's inventory         set {_tnt_count} to amount of tnt named {_tnt_name} in player's inventory         # Tutaj możesz zmienić nazwy przedmiotów!         set {_ench_name} to "&6&lKoxy"         set {_golden_name} to "&e&lRefille"         set {_pearl_name} to "&5&lPerly"         set {_emerald_name} to "&a&lBloki Szmaragdow"         set {_tnt_name} to "&c&lRzucane TNT"         set {_barrier_name} to "&cAnuluj"         set {_glass_name} to "&8&l."         # !!! DALEJ NIE ZMIENIAJ JAK SIĘ NIE ZNASZ !!!         set slot 11 of player's current inventory to enchanted golden apple named {_ench_name} with lore {_ench_lore} and "&7W EQ: &c%{_ench_count}%" and "&7W schowku: &c&e%{schowek::koxy::loop-player}%" and "" and "&6&l| &7Kliknij &6&lPPM &7Aby wpłacić!" and "&6&l| &7Kliknij &6&lLPM &7Aby wypłacić limit!"         set slot 13 of player's current inventory to golden apple named {_golden_name} with lore {_golden_lore} and "&7W EQ: &c%{_golden_count}%" and "&7W schowku: &c&e%{schowek::refille::loop-player}%" and "" and "&6&l| &7Kliknij &6&lPPM &7Aby wpłacić!" and "&6&l| &7Kliknij &6&lLPM &7Aby wypłacić limit!"         set slot 15 of player's current inventory to ender pearl named {_pearl_name} with lore {_pearl_lore} and "&7W EQ: &c%{_pearl_count}%" and "&7W schowku: &c&e%{schowek::perly::loop-player}%" and "" and "&6&l| &7Kliknij &6&lPPM &7Aby wpłacić!" and "&6&l| &7Kliknij &6&lLPM &7Aby wypłacić limit!"         set slot 21 of player's current inventory to emerald block named {_emerald_name} with lore {_emerald_lore} and "&7W EQ: &c%{_emerald_count}%" and "&7W schowku: &c&e%{schowek::eme::loop-player}%" and "" and "&6&l| &7Kliknij &6&lPPM &7Aby wpłacić!" and "&6&l| &7Kliknij &6&lLPM &7Aby wypłacić!"         set slot 23 of player's current inventory to tnt named {_tnt_name} with lore {_tnt_lore} and "&7W EQ: &c%{_tnt_count}%" and "&7W schowku: &c0" and "" and "&6&l| &7Kliknij &6&lPPM &7Aby wpłacić!" and "&6&l| &7Kliknij &6&lLPM &7Aby wypłacić!"         set slot 35 of player's current inventory to barrier named {_barrier_name} with lore {_barrier_lore}         # Wypelnienie tla         set slot 0 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 1 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 2 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 3 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 4 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 5 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 6 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 7 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 8 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 9 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 10 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 12 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 14 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 16 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 17 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 18 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 19 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 20 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 22 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 24 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 25 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 26 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 27 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 28 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 29 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 30 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 31 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 32 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 33 of player's current inventory to light gray stained glass pane named {_glass_name}         set slot 34 of player's current inventory to light gray stained glass pane named {_glass_name} on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked inventory is player's inventory:             stop         cancel event # Zamykanie on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked slot is 35:             send "&8» &7Pomyślnie zamknołeś gui." to player             close player's inventory             stop         cancel event # Koxy on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked slot is 11:             send "&8» &cNie posiadasz żadnych koxów w schowku!" to player             stop         cancel event # Refile on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked slot is 13:             if {_refille_count} is greater than 0:                 set {_refille_to_remove} to min({_refille_count}, {@refy-max})                 loop {_refille_to_remove} times:                     add 1 ender pearl to player's inventory                 remove {_refille_to_remove} from {schowek::refille::loop-player}                 send "&8» &aWydano {_refille_to_remove} pereł z schowka!" to player             else:                 send "&8» &cNie masz żadnych pereł w schowku!" to player             stop             cancel event # Perły on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked slot is 15:             if click type is left mouse button:             if {_pearl_count} is greater than 0:                 set {_pearl_to_remove} to {_pearl_count}                 loop {_pearl_to_remove} times:                     remove 1 ender pearl from player's inventory                 add {_pearl_count} to {schowek::perly::loop-player}                 send "&8» &aDodano {_pearl_count} pereł do schowka!" to player             else:                 send "&8» &cNie posiadasz żadnych pereł w ewkipunku!" to player             stop             cancel event             if click type is right mouse button:             if {_pearl_count} is greater than 0:                 set {_pearl_to_add} to {_pearl_count}                 loop {_pearl_to_add} times:                     add {@perly-max} ender pearl to player's inventory                 remove {_pearl_count} from {schowek::perly::loop-player}                 send "&8» &aOdebrano {_pearl_count} pereł do ekwipunku!" to player             else:                 send "&8» &cNie posiadasz żadnych pereł w schowka!" to player             stop # Emeraldy on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked slot is 21:             if click type is left mouse button:             if {_emerald_count} is greater than 0:                 set {_emerald_to_remove} to {_emerald_count}                 loop {_emerald_to_remove} times:                     remove 1 emerald block from player's inventory                 add {_emerald_count} to {schowek::eme::loop-player}                 send "&8» &aDodano {_emerald_count} emeraldów do schowka!" to player             else:                 send "&8» &cNie posiadasz żadnych emeraldów w ewkipunku!" to player             stop             cancel event             if click type is right mouse button:               if {_emerald_count} is greater than 0:                   set {_emerald_to_remove} to {_emerald_count}                   loop {_emerald_to_remove} times:                       remove 1 emerald block from player's inventory                   add {_emerald_count} to {schowek::eme::loop-player}                   send "&8» &aDodano {_emerald_count} emeraldów do ekwipunku!" to player               else:                   send "&8» &cNie posiadasz żadnych emeraldów w schowsku!" to player               stop               cancel event # TNT on inventory click:     if name of player's current inventory is "&6&lSchowek":         if clicked slot is 23:             if click type is left mouse button:             if {_tnt_count} is greater than 0:                 set {_tnt_to_remove} to {_tnt_count}                 loop {_tnt_to_remove} times:                     remove 1 emerald block from player's inventory                 add {_tnt_count} to {schowek::tnt::loop-player}                 send "&8» &aDodano {_tnt_count} tnt do schowka!" to player             else:                 send "&8» &cNie posiadasz żadnego tnt w ewkipunku!" to player             stop             cancel event             if click type is right mouse button:               if {_tnt_count} is greater than 0:                   set {_tnt_to_remove} to {_tnt_count}                   loop {_tnt_to_remove} times:                       remove 1 tnt block from player's inventory                   add {_tnt_count} to {schowek::tnt::loop-player}                   send "&8» &aDodano {_tnt_count} tnt do ekwipunku!" to player               else:                   send "&8» &cNie posiadasz żadnego tnt w schowsku!" to player               stop               cancel event # SYSTEM LIMITÓW every 1 second:     loop all players:         if loop-player has ({@koxy-max} + 1) of enchanted golden apple:             add ((amount of enchanted golden apple in loop-player's inventory) - {@koxy-max}) to {schowek::koxy::loop-player}             remove ((amount of enchanted golden apple in loop-player's inventory) - {@koxy-max}) of enchanted golden apple from loop-player's inventory             send "&8» &cMiales za duzo koxow! Przeniesiono nadmiar do depozytu!" to loop-player         if loop-player has ({@refy-max} + 1) of golden apple:             add ((amount of golden apple in loop-player's inventory) - {@refy-max}) to {schowek::refille::loop-player}             remove ((amount of golden apple in loop-player's inventory) - {@refy-max}) of golden apple from loop-player's inventory             send "&8» &cMiales za duzo refow! Przeniesiono nadmiar do depozytu!" to loop-player         if loop-player has ({@perly-max} + 1) of ender pearl:             add ((amount of ender pearl in loop-player's inventory) - {@perly-max}) to {schowek::perly::loop-player}             remove ((amount of ender pearl in loop-player's inventory) - {@perly-max}) of ender pearl from loop-player's inventory             send "&8» &cMiales za duzo perel! Przeniesiono nadmiar do depozytu!" to loop-player