on script load: if folder "plugins/Skript/scripts/Postac" doesn't exists: create folder "plugins/Skript/scripts/Postac" crate file "Postac/config.yml" if yaml value "npc" from "Postac/config.yml" isn't set: set yaml value "npc" from "Postac/config.yml" to "nazwa npc" set {npc} to yaml value "npc" from "Postac/config.yml" if yaml value "gui" from "Postac/config.yml" isn't set: set yaml value "gui" from "Postac/config.yml" to "&8&lWybierz postac" set {gui} to yaml value "gui" from "Postac/config.yml" if yaml value "stworz_postac_blok" from "Postac/config.yml" isn't set: set yaml value "stworz_postac_blok" from "Postac/config.yml" to "wool:14" set {spb} to yaml value "stworz_postac_blok" from "Postac/config.yml" if yaml value "stworz_postac_nazwa" from "Postac/config.yml" isn't set: set yaml value "stworz_postac_nazwa" from "Postac/config.yml" to "&aStworz postac" set {spn} to yaml value "stworz_postac_nazwa" from "Postac/config.yml" if yaml value "wybierz_frakcje_nazwa" from "Postac/config.yml" isn't set: set yaml value "wybierz_frakcje_nazwa" from "Postac/config.yml" to "&aStworz postac" set {wfb} to yaml value "wybierz_frakcje_nazwa" from "Postac/config.yml" if yaml value "czerwoni_blok" from "Postac/config.yml" isn't set: set yaml value "czerwoni_blok" from "Postac/config.yml" to "wool:14" set {cb} to yaml value "czerwoni_blok" from "Postac/config.yml" if yaml value "czerwoni_nazwa" from "Postac/config.yml" isn't set: set yaml value "czerwoni_nazwa" from "Postac/config.yml" to "&cCzerwoni" set {cn} to yaml value "czerwoni_nazwa" from "Postac/config.yml" if yaml value "niebiescy_blok" from "Postac/config.yml" isn't set: set yaml value "niebiescy_blok" from "Postac/config.yml" to "wool:11" set {nb} to yaml value "niebiescy_blok" from "Postac/config.yml" if yaml value "niebiescy_nazwa" from "Postac/config.yml" isn't set: set yaml value "niebiescy_nazwa" from "Postac/config.yml" to "&9Niebiescy" set {nn} to yaml value "niebiescy_nazwa" from "Postac/config.yml" if yaml value "wp" from "Postac/config.yml" isn't set: set yaml value "wp" from "Postac/config.yml" to "&8&lWybor plci" set {wp} to yaml value "wp" from "Postac/config.yml" if yaml value "mezczyzna_blok" from "Postac/config.yml" isn't set: set yaml value "mezczyzna_blok" from "Postac/config.yml" to "wool:11" set {ch} to yaml value "mezczyzna_blok" from "Postac/config.yml" if yaml value "mezczyzna_nazwa" from "Postac/config.yml" isn't set: set yaml value "mezczyzna_nazwa" from "Postac/config.yml" to "&9Mezczyzna" set {chn} to yaml value "mezczyzna_nazwa" from "Postac/config.yml" if yaml value "kobieta_blok" from "Postac/config.yml" isn't set: set yaml value "kobieta_blok" from "Postac/config.yml" to "wool:9" set {dz} to yaml value "kobieta_blok" from "Postac/config.yml" if yaml value "kobieta_nazwa" from "Postac/config.yml" isn't set: set yaml value "kobieta_nazwa" from "Postac/config.yml" to "&dKobieta" set {dzn} to yaml value "kobieta_nazwa" from "Postac/config.yml" if yaml value "rasy" from "Postac/config.yml" isn't set: set yaml value "rasy" from "Postac/config.yml" to "&8&lWybor rasy" set {rasy} to yaml value "rasy" from "Postac/config.yml" if yaml value "elf_blok" from "Postac/config.yml" isn't set: set yaml value "elf_blok" from "Postac/config.yml" to "wool:1" set {eb} to yaml value "elf_blok" from "Postac/config.yml" if yaml value "elf_nazwa" from "Postac/config.yml" isn't set: set yaml value "elf_nazwa" from "Postac/config.yml" to "&6Elf" set {en} to yaml value "elf_nazwa" from "Postac/config.yml" if yaml value "czlowiek_blok" from "Postac/config.yml" isn't set: set yaml value "czlowiek_blok" from "Postac/config.yml" to "wool:1" set {czb} to yaml value "czlowiek_blok" from "Postac/config.yml" if yaml value "czlowiek_nazwa" from "Postac/config.yml" isn't set: set yaml value "czlowiek_nazwa" from "Postac/config.yml" to "&6Czlowiek" set {czn} to yaml value "czlowiek_nazwa" from "Postac/config.yml" if yaml value "krasnolud_blok" from "Postac/config.yml" isn't set: set yaml value "krasnolud_blok" from "Postac/config.yml" to "wool:1" set {kb} to yaml value "krasnolud_blok" from "Postac/config.yml" if yaml value "krasnolud_nazwa" from "Postac/config.yml" isn't set: set yaml value "krasnolud_nazwa" from "Postac/config.yml" to "&6Krasnolud" set {kn} to yaml value "krasnolud_nazwa" from "Postac/config.yml" if yaml value "klasy_nazwa" from "Postac/config.yml" isn't set: set yaml value "klasy_nazwa" from "Postac/config.yml" to "&8&lWybor klasy" set {klasy} to yaml value "klasy_nazwa" from "Postac/config.yml" if yaml value "klasa_nr1_blok" from "Postac/config.yml" isn't set: set yaml value "klasa_nr1_blok" from "Postac/config.yml" to "wool:1" set {klasa_nr1_blok} to yaml value "klasa_nr1_blok" from "Postac/config.yml" if yaml value "klasa_nr1_nazwa" from "Postac/config.yml" isn't set: set yaml value "klasa_nr1_nazwa" from "Postac/config.yml" to "&6Klasa nr1" set {klasa_nr1_nazwa} to yaml value "klasa_nr1_nazwa" from "Postac/config.yml" if yaml value "klasa_nr2_blok" from "Postac/config.yml" isn't set: set yaml value "klasa_nr2_blok" from "Postac/config.yml" to "wool:1" set {klasa_nr2_blok} to yaml value "klasa_nr2_blok" from "Postac/config.yml" if yaml value "klasa_nr2_nazwa" from "Postac/config.yml" isn't set: set yaml value "klasa_nr2_nazwa" from "Postac/config.yml" to "&6Klasa nr2" set {klasa_nr2_nazwa} to yaml value "klasa_nr2_nazwa" from "Postac/config.yml" if yaml value "klasa_nr3_blok" from "Postac/config.yml" isn't set: set yaml value "klasa_nr3_blok" from "Postac/config.yml" to "wool:1" set {klasa_nr3_blok} to yaml value "klasa_nr3_blok" from "Postac/config.yml" if yaml value "klasa_nr3_nazwa" from "Postac/config.yml" isn't set: set yaml value "klasa_nr3_nazwa" from "Postac/config.yml" to "&6Klasa nr3" set {klasa_nr3_nazwa} to yaml value "klasa_nr3_nazwa" from "Postac/config.yml" if yaml value "klasa_nr4_blok" from "Postac/config.yml" isn't set: set yaml value "klasa_nr4_blok" from "Postac/config.yml" to "wool:1" set {klasa_nr4_blok} to yaml value "klasa_nr4_blok" from "Postac/config.yml" if yaml value "klasa_nr4_nazwa" from "Postac/config.yml" isn't set: set yaml value "klasa_nr4_nazwa" from "Postac/config.yml" to "&6Klasa nr4" set {klasa_nr4_nazwa} to yaml value "klasa_nr4_nazwa" from "Postac/config.yml" if yaml value "akceptuj_nazwa" from "Postac/config.yml" isn't set: set yaml value "akceptuj_nazwa" from "Postac/config.yml" to "&8&lZaakceptuj stworzenie postaci" set {akceptuj_nazwa} to yaml value "akceptuj_nazwa" from "Postac/config.yml" if yaml value "akceptuj_tak_blok" from "Postac/config.yml" isn't set: set yaml value "akceptuj_tak_blok" from "Postac/config.yml" to "wool:5" set {akceptuj_tak_blok} to yaml value "akceptuj_tak_blok" from "Postac/config.yml" if yaml value "akceptuj_tak_nazwa" from "Postac/config.yml" isn't set: set yaml value "akceptuj_tak_nazwa" from "Postac/config.yml" to "&aAkceptuje" set {akceptuj_tak_nazwa} to yaml value "akceptuj_tak_nazwa" from "Postac/config.yml" if yaml value "akceptuj_nie_blok" from "Postac/config.yml" isn't set: set yaml value "akceptuj_nie_blok" from "Postac/config.yml" to "wool:14" set {akceptuj_nie_blok} to yaml value "akceptuj_nie_blok" from "Postac/config.yml" if yaml value "akceptuj_nie_nazwa" from "Postac/config.yml" isn't set: set yaml value "akceptuj_nie_nazwa" from "Postac/config.yml" to "&cNie Akceptuje" set {akceptuj_nie_nazwa} to yaml value "akceptuj_nie_nazwa" from "Postac/config.yml" if yaml value "wiadomosc_stworzono_postac" from "Postac/config.yml" isn't set: set yaml value "wiadomosc_stworzono_postac" from "Postac/config.yml" to "&aPomyslnie stworzyles nowa postac!" set {sp} to yaml value "wiadomosc_stworzono_postac" from "Postac/config.yml" if yaml value "wiadomosc_niestworzono_postaci" from "Postac/config.yml" isn't set: set yaml value "wiadomosc_niestworzono_postaci" from "Postac/config.yml" to "&cAnulowales stworzenie postaci!" set {ap} to yaml value "wiadomosc_niestworzono_postaci" from "Postac/config.yml" if yaml value "postac_blok" from "Postac/config.yml" isn't set: set yaml value "postac_blok" from "Postac/config.yml" to "wool:5" set {postac} to yaml value "postac_blok" from "Postac/config.yml" if yaml value "postac_nazwa" from "Postac/config.yml" isn't set: set yaml value "postac_nazwa" from "Postac/config.yml" to "&2&lGraj" set {np} to yaml value "postac_nazwa" from "Postac/config.yml" if yaml value "frakcja_lore" from "Postac/config.yml" isn't set: set yaml value "frakcja_lore" from "Postac/config.yml" to "&2Frakcja:" set {frakcja_lore} to yaml value "frakcja_lore" from "Postac/config.yml" if yaml value "plec_lore" from "Postac/config.yml" isn't set: set yaml value "plec_lore" from "Postac/config.yml" to "&2Plec:" set {plec_lore} to yaml value "plec_lore" from "Postac/config.yml" if yaml value "rasa_lore" from "Postac/config.yml" isn't set: set yaml value "rasa_lore" from "Postac/config.yml" to "&2Rasa:" set {rasa_lore} to yaml value "rasa_lore" from "Postac/config.yml" if yaml value "klasa_lore" from "Postac/config.yml" isn't set: set yaml value "klasa_lore" from "Postac/config.yml" to "&2Klasa:" set {klasa_lore} to yaml value "klasa_lore" from "Postac/config.yml" if yaml value "wiadomosc_wybral_postac" from "Postac/config.yml" isn't set: set yaml value "wiadomosc_wybral_postac" from "Postac/config.yml" to "&aWybrales swoja postac! zyczymy milej gry!" set {wybral_postac} to yaml value "wiadomosc_wybral_postac" from "Postac/config.yml" if yaml value "usunpostac_blok" from "Postac/config.yml" isn't set: set yaml value "usunpostac_blok" from "Postac/config.yml" to "wool:14" set {usunpostac_blok} to yaml value "usunpostac_blok" from "Postac/config.yml" if yaml value "usunpostac_nazwa" from "Postac/config.yml" isn't set: set yaml value "usunpostac_nazwa" from "Postac/config.yml" to "&cUsun postac" set {usunpostac_nazwa} to yaml value "usunpostac_nazwa" from "Postac/config.yml" if yaml value "usunpostac_akceptuj" from "Postac/config.yml" isn't set: set yaml value "usunpostac_akceptuj" from "Postac/config.yml" to "&8&lAkceptuj usuniecie postaci" set {usunpostac_akceptuj} to yaml value "usunpostac_akceptuj" from "Postac/config.yml" if yaml value "usunpostacakceptuj_blok" from "Postac/config.yml" isn't set: set yaml value "usunpostacakceptuj_blok" from "Postac/config.yml" to "wool:5" set {usunpostacakceptuj_blok} to yaml value "usunpostacakceptuj_blok" from "Postac/config.yml" if yaml value "usunpostacakceptuj_nazwa" from "Postac/config.yml" isn't set: set yaml value "usunpostacakceptuj_nazwa" from "Postac/config.yml" to "&aAkceptuje" set {usunpostacakceptuj_nazwa} to yaml value "usunpostacakceptuj_nazwa" from "Postac/config.yml" if yaml value "usunpostacnieakceptuj_blok" from "Postac/config.yml" isn't set: set yaml value "usunpostacnieakceptuj_blok" from "Postac/config.yml" to "wool:14" set {usunpostacnieakceptuj_blok} to yaml value "usunpostacnieakceptuj_blok" from "Postac/config.yml" if yaml value "usunpostacnieakceptuj_nazwa" from "Postac/config.yml" isn't set: set yaml value "usunpostacnieakceptuj_nazwa" from "Postac/config.yml" to "&cNie Akceptuje" set {usunpostacnieakceptuj_nazwa} to yaml value "usunpostacnieakceptuj_nazwa" from "Postac/config.yml" if yaml value "usunalpostac_wiad" from "Postac/config.yml" isn't set: set yaml value "usunalpostac_wiad" from "Postac/config.yml" to "&cUsunales swoja postac!" set {usunalpostac_wiad} to yaml value "usunalpostac_wiad" from "Postac/config.yml" if yaml value "nieusunalpostaci_wiad" from "Postac/config.yml" isn't set: set yaml value "nieusunalpostaci_wiad" from "Postac/config.yml" to "&aAnulowales usuniecie swojej postaci" set {nieusunalpostaci_wiad} to yaml value "nieusunalpostaci_wiad" from "Postac/config.yml" on right click on player: if name of clicked player is "%{npc}%": open chest with 3 rows named "%{gui}%" to player set {i.%player%} to 0 wait 1 tick loop 27 times: set player's current inventory's slot {i.%player%} to stained glass pane:7 named " " add 1 to {i.%player%} set {i.%player%} to 0 wait 1 tick loop 9 times: set player's current inventory's slot {i.%player%} to stained glass pane:15 named " " add 1 to {i.%player%} set {i.%player%} to 18 wait 1 tick loop 9 times: set player's current inventory's slot {i.%player%} to stained glass pane:15 named " " add 1 to {i.%player%} set player's current inventory's slot 9 to stained glass pane:15 named " " set player's current inventory's slot 17 to stained glass pane:15 named " " if {postac.%player%} is true: format slot 13 of player with ({postac} parsed as item) named "%{np}%" with lore "||%{frakcja_lore}% &a%{f.%player%}%||%{plec_lore}% &a%{p.%player%}%||%{rasa_lore}% &a%{r.%player%}%||%{klasa_lore}% &a%{k.%player%}%|| " to close then run "wybralpostac %player%" format slot 10 of player with ({usunpostac_blok} parsed as item) named "%{usunpostac_nazwa}%" to run "usunpostacakceptuj %player%" else: format slot 13 of player with ({spb} parsed as item) named "{spn}" to run "stworzpostac %player%" stop command /usunpostacakceptuj []: trigger: if sender is console: open chest with 3 rows named "%{usunpostac_akceptuj}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({usunpostacakceptuj_blok} parsed as item) named "%{usunpostacakceptuj_nazwa}%" to close then run "usunalpostac %arg 1%" format slot 14 of arg 1 with ({usunpostacnieakceptuj_blok} parsed as item) named "%{usunpostacnieakceptuj_nazwa}%" to close then run "nieusunalpostaci %arg 1%" command /usunalpostac []: trigger: if sender is console: set {postac.%arg 1%} to false send "%{usunalpostac_wiad}%" to arg 1 stop command /nieusunalpostaci []: trigger: if sender is console: send "%{nieusunalpostaci_wiad}%" to arg 1 stop command /wybralpostac []: trigger: if sender is console: send "%{wybral_postac}%" to arg 1 on inventory click: if inventory name of player's current inventory is "%{gui}%": cancel event if inventory name of player's current inventory is "%{wfb}%": cancel event if inventory name of player's current inventory is "%{wp}%": cancel event if inventory name of player's current inventory is "%{rasy}%": cancel event if inventory name of player's current inventory is "%{klasy}%": cancel event if inventory name of player's current inventory is "%{akceptuj}%": cancel event if inventory name of player's current inventory is "%{akceptujusun}%": cancel event if inventory name of player's current inventory is "%{usunpostac_akceptuj}%": cancel event command /stworzpostac []: trigger: if sender is console: open chest with 3 rows named "%{wfb}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({cb} parsed as item) named "%{cn}%" to run "stworzpostac1 %arg 1%" format slot 14 of arg 1 with ({nb} parsed as item) named "%{nn}%" to run "stworzpostac12 %arg 1%" command /stworzpostac1 []: trigger: if sender is console: set {f.%arg 1%} to "%{cn}%" open chest with 3 rows named "%{wp}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({ch} parsed as item) "%{chn}%" to run "stworzpostac2 %arg 1%" format slot 14 of arg 1 with ({dz} parsed as item) "%{dzn}%" to run "stworzpostac22 %arg 1%" command /stworzpostac12 []: trigger: if sender is console: set {f.%arg 1%} to "%{nn}%" open chest with 3 rows named "%{wp}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({ch} parsed as item) "%{chn}%" to run "stworzpostac2 %arg 1%" format slot 14 of arg 1 with ({dz} parsed as item) "%{dzn}%" to run "stworzpostac22 %arg 1%" command /stworzpostac2 []: trigger: if sender is console: set {p.%arg 1%} to "%{chn}%" open chest with 3 rows named "%{rasy}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 11 of player with ({eb} parsed as item) named "%{en}%" to run "stworzpostac3 %arg 1%" format slot 13 of player with ({czb} parsed as item) named "%{czn}%" to run "stworzpostac33 %arg 1%" format slot 15 of player with ({kb} parsed as item) named "%{kn}%" to run "stworzpostac333 %arg 1%" command /stworzpostac22 []: trigger: if sender is console: set {p.%arg 1%} to "%{dzn}%" open chest with 3 rows named "%{rasy}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 11 of arg 1 with ({eb} parsed as item) named "%{en}%" to run "stworzpostac3 %arg 1%" format slot 13 of arg 1 with ({czb} parsed as item) named "%{czn}%" to run "stworzpostac33 %arg 1%" format slot 15 of arg 1 with ({kb} parsed as item) named "%{kn}%" to run "stworzpostac333 %arg 1%" command /stworzpostac3 []: trigger: if sender is console: set {r.%arg 1%} to "%{en}%" open chest with 3 rows named "%{klasy}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 10 of arg 1 with ({klasa_nr1_blok} parsed as item) named "%{klasa_nr1_nazwa}%" to run "akceptujpostac1 %arg 1%" format slot 12 of arg 1 with ({klasa_nr2_blok} parsed as item) named "%{klasa_nr2_nazwa}%" to run "akceptujpostac2 %arg 1%" format slot 14 of arg 1 with ({klasa_nr3_blok} parsed as item) named "%{klasa_nr3_nazwa}%" to run "akceptujpostac3 %arg 1%" format slot 16 of arg 1 with ({klasa_nr4_blok} parsed as item) named "%{klasa_nr4_nazwa}%" to run "akceptujpostac4 %arg 1%" command /stworzpostac33 []: trigger: if sender is console: set {r.%arg 1%} to "%{czn}%" open chest with 3 rows named "%{klasy}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 10 of arg 1 with ({klasa_nr1_blok} parsed as item) named "%{klasa_nr1_nazwa}%" to run "akceptujpostac1 %arg 1%" format slot 12 of arg 1 with ({klasa_nr2_blok} parsed as item) named "%{klasa_nr2_nazwa}%" to run "akceptujpostac2 %arg 1%" format slot 14 of arg 1 with ({klasa_nr3_blok} parsed as item) named "%{klasa_nr3_nazwa}%" to run "akceptujpostac3 %arg 1%" format slot 16 of arg 1 with ({klasa_nr4_blok} parsed as item) named "%{klasa_nr4_nazwa}%" to run "akceptujpostac4 %arg 1%" command /stworzpostac333 []: trigger: if sender is console: set {r.%arg 1%} to "%{kn}%" open chest with 3 rows named "%{klasy}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 10 of arg 1 with ({klasa_nr1_blok} parsed as item) named "%{klasa_nr1_nazwa}%" to run "akceptujpostac1 %arg 1%" format slot 12 of arg 1 with ({klasa_nr2_blok} parsed as item) named "%{klasa_nr2_nazwa}%" to run "akceptujpostac2 %arg 1%" format slot 14 of arg 1 with ({klasa_nr3_blok} parsed as item) named "%{klasa_nr3_nazwa}%" to run "akceptujpostac3 %arg 1%" format slot 16 of arg 1 with ({klasa_nr4_blok} parsed as item) named "%{klasa_nr4_nazwa}%" to run "akceptujpostac4 %arg 1%" command /akceptujpostac1 []: trigger: if sender is console: set {k.%arg 1%} to "%{klasa_nr1_nazwa}%" open chest with 3 rows named "%{akceptuj}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({akceptuj_tak_blok} parsed as item) named "%{akceptuj_tak_nazwa}%" to run "akceptuje %arg 1%" format slot 14 of arg 1 with ({akceptuj_nie_blok} parsed as item) named "%{akceptuj_nie_nazwa}%" to run "nieakceptuje %arg 1%" command /akceptujpostac2 []: trigger: if sender is console: set {k.%arg 1%} to "%{klasa_nr2_nazwa}%" open chest with 3 rows named "%{akceptuj}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({akceptuj_tak_blok} parsed as item) named "%{akceptuj_tak_nazwa}%" to run "akceptuje %arg 1%" format slot 14 of arg 1 with ({akceptuj_nie_blok} parsed as item) named "%{akceptuj_nie_nazwa}%" to run "nieakceptuje %arg 1%" command /akceptujpostac3 []: trigger: if sender is console: set {k.%arg 1%} to "%{klasa_nr3_nazwa}%" open chest with 3 rows named "%{akceptuj}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({akceptuj_tak_blok} parsed as item) named "%{akceptuj_tak_nazwa}%" to run "akceptuje %arg 1%" format slot 14 of arg 1 with ({akceptuj_nie_blok} parsed as item) named "%{akceptuj_nie_nazwa}%" to run "nieakceptuje %arg 1%" command /akceptujpostac4 []: trigger: if sender is console: set {k.%arg 1%} to "%{klasa_nr4_nazwa}%" open chest with 3 rows named "%{akceptuj}%" to arg 1 set {i.%arg 1%} to 0 wait 1 tick loop 27 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:7 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 0 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} set {i.%arg 1%} to 18 wait 1 tick loop 9 times: set arg 1's current inventory's slot {i.%arg 1%} to stained glass pane:15 named " " add 1 to {i.%arg 1%} format slot 12 of arg 1 with ({akceptuj_tak_blok} parsed as item) named "%{akceptuj_tak_nazwa}%" to close then run "akceptuje %arg 1%" format slot 14 of arg 1 with ({akceptuj_nie_blok} parsed as item) named "%{akceptuj_nie_nazwa}%" to close then run "nieakceptuje %arg 1%" command /akceptuje []: trigger: if sender is console: set {postac.%arg 1%} to true send "%{sp}%" to arg 1 command /nieakceptuje []: trigger: if sender is console: set {postac.%arg 1%} to false send "%{ap}%" to arg 1