on first join: add 50 to player's level every 10 seconds in "world": loop all players: add -3 to loop-player's level if loop-player's level is equal to 0: kill loop-player send "&cUmarłeś z odwodnienia, staraj się trzymać jego poziom pomiędzy 40 a 50" to loop-player add 50 to loop-player's level else: if loop-player's level is smaller than 0: kill loop-player send "&cUmarłeś z odwodnienia, staraj się trzymać jego poziom pomiędzy 40 a 50" to loop-player add 50 to loop-player's level else: if loop-player's level is smaller than 10: apply potion of slowness of tier 5 to loop-player for 1 minutes apply potion of blindness of tier 2 to loop-player for 1 minutes send "&cJesteś na skraju odwodnienia, od śmierci dzielą Cię już tylko minuty!" to loop-player else: if loop-player's level is smaller than 20: apply potion of slowness of tier 4 to loop-player for 1 minutes send "&cDoznałeś skutków mocnego odwodnienia, zwiększ swój poziom pragnienia!" to loop-player else: if loop-player's level is smaller than 30: apply potion of slowness of tier 2 to loop-player for 1 minutes send "&cDoznajesz skutków odwodnienia" to loop-player else: if level of loop-player is smaller than 40: apply potion of slowness of tier 1 to loop-player for 1 minutes send "&cDoznajesz skutków lekkiego odwodnienia" to loop-player command /podrecznik: trigger: open chest with 1 rows named "&1Menu Przetrwania" to player wait 4 ticks format slot 1 of player with 1 glass_bottle named "&2Wytwarzanie Napoi" with lore "&7W menu znajdziesz wszystkie możliwe receptury||&7wytwarzania napoi które są dostępne" to run "menu napoje %player%" format slot 2 of player with 1 bowl named "&2Wytwarzanie jedzenia" with lore "&7W menu znajdziesz wszystkie możliwe receptury||&7wytwarzania pożywnia które są dostępne" to run "menu jedzenie %player%" format slot 3 of player with 1 book named "&2Wytwarzanie przedmiotów" with lore "&7W menu znajdziesz wszystkie możliwe receptury||&7wytwarzania przedmiotów które są dostępne" to run "menu przedmioty %player%" format slot 8 of player with 1 book named "&2Autor skryptu: &3Vulture" with lore "&7Możliwość kontaku|| &7Forum: &3https://skript.pl/profil/12470-vulture/" to close then run "komenda zamkniecia" command /menu : executable by: console trigger: if arg-1 is "napoje": open chest with 2 rows named "&1Menu Napoi" to player-arg wait 4 ticks format slot 1 of player-arg with 1 glass_bottle named "&2Woda pitna" with lore "&7Wytwórz wodę zdatną do picia||||&7Wymagania:|| &21x Butelka Wody|| &22x Papier||||&7Woda pitna dodaje +3 pkt pragnienia" to close then run "napoj 1 %player-arg%" format slot 2 of player-arg with 1 glass_bottle named "&2Woda z cukrem" with lore "&7Wytwórz wodę z cukrem||||&7Wymagania:|| &21x Woda pitna|| &21xCukier||||&7Woda z cukrem dodaje +4 pkt pragnienia||&7Dodatkowy efekt - pośpiech 10 sekund" to close then run "napoj 2 %player-arg%" format slot 3 of player-arg with 1 glass_bottle named "&2Domowy enegretyk" with lore "&7Domowej roboty napój energetyczny||||&7Wymagania:|| &21x Woda z cukrem|| &22x cukier|| &2Zielona kapsułka||||&7Napój enegretyczny dodaje +4 pkt pragnienia||&7Dodatkowy efekt - pośpiech 30 sekund" to close then run "napoj 3 %player-arg%" format slot 4 of player-arg with 1 glass_bottle named "&2Domowy izotonik" with lore "&7Domowej roboty napój izotoniczny||||&7Wymagania:|| &21x Woda pitna|| &21x Niebieska kapsułka|| &21x Witaminy||||&7Napój izotoniczny dodaje 15 pkt pragnienia||&7Dodatkowy efekt - Siła 10 sekund" to close then run "napoj 4 %player-arg%" format slot 5 of player-arg with 1 glass_bottle named "&2Kawa" with lore "&7Niskiej jakości kawa||||&7Wymagania:|| &23xZiarna kakaowe|| &21xWoda pitna|| &21xCukier||||&7Kawa dodaje +1 pkt pragnienia||&7Dodatkowy efekt - pośpiech III 10 sekund" to close then run "napoj 5 %player-arg%" else: if arg-1 is "jedzenie": open chest with 1 rows named "&1Menu pożywienia" to player-arg wait 4 ticks format slot 1 of player-arg with 1 bowl named "&2Baton czekoladowy" with lore "&7Słabej jakości baton czekoladowy||||&7Wymagania:|| &22x Ziarna kakaowe|| &21x krakersy||||&7Baton czekoladowy dodaje 2 pkt głodu" to close then run "food 1 %player-arg%" format slot 2 of player-arg with 1 bowl named "&2Baton energetyczny" with lore "&7Słabej jakości baton enegretyczny||||&7Wymagania:|| &22x Ziarna kakaowe|| &21xCukier||||&7Baton enegretyczny dodaje 4 pkt głodu||&7Dodatkowy efekt - Przyspieszenie II 10 sekund" to close then run "food 2 %player-arg%" format slot 3 of player-arg with 1 bowl named "&2Mieszanka proteinowa" with lore "&7Średniej jakości mieszanka proteinowa||||&7Wymagania:|| &22x Zielona kapsułka|| &22xNiebieska kapsułka|| &21x Woda pitna|| &21x Cukier||||Mieszanka dodaje 10 pkt pragnienia||Mieszanka dodaje 7 pkt głodu||&7Dodatkowy efekt - 50%% szansy na uleczenie postaci" to close then run "food 3 %player-arg%" else: if arg-1 is "przedmioty": open chest with 1 rows named "&1Menu przedmiotów" to player-arg wait 4 ticks format slot 1 of player-arg with 1 book named "&2Słaby bandaż" with lore "&7Słabej jakości bandaż, potrafi zatamować krwawienie||||&7Wymagania:|| &22x Papier" to close then run "przedmiot 1 %player-arg%" format slot 2 of player-arg with 1 book named "&2Średni bandaż" with lore "&7Średniej jakości bandaż, potrafi uleczyć złamaną kończynę oraz zatamować krwawienie||||&7Wymagania:|| &23x Papier|| &21x Nitka" to close then run "przedmiot 2 %player-arg%" format slot 3 of player-arg with 1 book named "&2Militarny bandaż" with lore "&7Wysokiej jakości bandaż, potrafi leczyć złamane kończyny oraz tamować krwawienia||&7Dodatkowym atutem jest leczenie gracza||||&7Wymagania:|| &24x Papier|| &23x Nitka|| &22x Wełna" to close then run "przedmiot 3 %player-arg%" format slot 4 of player-arg with 1 book named "&2Zielona kapsułka" with lore "&7Zielona kapsułka jest wymagana do tworzenia napoi oraz jedzenia||&7Kapsułka stosowana do środków enegretyzujących||||&7Wymagania:|| &25x Cukier" to close then run "przedmiot 4 %player-arg%" format slot 5 of player-arg with 1 book named "&2Niebieska kapsułka" with lore "&7Niebieska kapsułka jest wymagana do tworzenia napoi oraz jedzenia||&7Kapsułka stosowana jest do napoi izotonicznych||||&7Wymagania:|| &22x Cukier|| &23x Ziemniak" to close then run "przedmiot 5 %player-arg%" command /napoj : trigger: if arg-1 is "1": if player-arg has 1 water_bottle named "&2Woda niezdatna do picia": if player-arg has 2 paper: remove water_bottle from player-arg remove 2 paper from player-arg give 1 water_bottle named "&2Woda pitna" to player-arg else: send "&cNie posiadasz papieru do filtrowania wody" to player-arg else: send "&cNie posiadasz butelki z wodą do oczyszczenia" to player-arg else: if arg-1 is "2": if player-arg has 1 water_bottle named "&2Woda pitna": if player-arg has 1 sugar: remove 1 sugar from player-arg remove 1 water_bottle named "&2Woda pitna" from player-arg give 1 water_bottle named "&2Woda z cukrem" to player-arg else: send "&cNie posiadasz 1 sztuki cukru" to player-arg else: send "&cNie posiadasz butelki z wodą zdatnądo picia" to player-arg else: if arg-1 is "3": if player-arg has 1 water_bottle named "&2Woda z cukrem": if player-arg has 2 sugar: if player has light green dye named "&2Zielona kapsułka": remove 1 light green dye named "&2Zielona kapsułka" from player-arg remove 2 sugar from player-arg remove 1 water_bottle named "&2Woda z cukrem" from player-arg give 1 water_bottle named "&2Domowy enegretyk" to player-arg else: send "&cNie posiadasz Zielonej kapsułki" to player-arg else: send "&cNie posiadasz 2 sztuk cukru" to player-arg else: send "&cNie posiadasz wody z cukrem" to player-arg else: if arg-1 is "4": if player-arg has 1 water_bottle named "&2Woda pitna": if player-arg has 1 light blue dye named "&2Niebieska kapsułka": if player-arg has 1 prismarine_crystal named "&2Witaminy": remove 1 water_bottle named "&2Woda pitna" from player-arg remove 1 light blue dye named "&2Niebieska kapsułka" from player-arg remove 1 prismarine_crystal named "&2Witaminy" from player-arg give 1 water_bottle named "&2Domowy izotonik" to player-arg else: send "&cNie posiadasz Witamin" to player-arg else: send "&cNie posiadasz Niebieskiej kapsułki" to player-arg else: send "&cNie posiadasz butelki wody pitnej" to player-arg else: if arg-1 is "5": if player-arg has 1 water_bottle named "&2Woda pitna": if player-arg has 3 brown dye: if player-arg has 1 sugar: remove 1 water_bottle named "&2Woda pitna" from player-arg remove 1 brown dye from player-arg remove 1 sugar from player-arg give 1 water_bottle named "&2Kawa" to player-arg else: send "&cNie posiadasz cukru" to player-arg else: send "&cNie posiadasz ziaren kakaowych" to player-arg else: send "&cNie posiadasz butelki wody pitnej" to player-arg command /food : executable by: console trigger: if arg-1 is "1": if player-arg has 2 brown dye: if player-arg has 1 cookie named "&2Krakers": remove 2 brown dye from player-arg remove 1 cookie named "&2Krakers" from player-arg give 1 brick named "&2Baton czekoladowy" to player-arg else: send "&cNie posiadasz krakersów" to player-arg else: send "&cNie posiadasz ziaren kakaowych" to player-arg else: if arg-1 is "2": if player-arg has 2 brown dye: if player-arg has 1 sugar: remove 2 brown dye from player-arg remove 1 sugar from player-arg give 1 brick named "&2Baton energetyczny" to player-arg else: send "&cNie posiadasz cukru" to player-arg else: send "&cNie posiadasz ziaren kakaowych" to player-arg else: if arg-1 is "3": if player-arg has 1 water_bottle named "&2Woda pitna": if player-arg has 1 sugar: if player-arg has 2 light green dye named "&2Zielona kapsułka": if player-arg has 2 light blue dye named "&2Niebieska kapsułka": remove 2 brown dye from player-arg remove 1 sugar from player-arg give 1 soup named "&2Mieszanka proteinowa" to player-arg else: send "&cNie posiadasz niebieskich kapsułek" to player-arg else: send "&cNie posiadasz zielonych kaspułek" to player-arg else: send "&cNie posiadasz cukru" to player-arg else: send "&cNie posiadasz ziaren kakaowych" to player-arg command /przedmiot : executable by: console trigger: if arg-1 is "1": if player-arg has 2 paper: remove 2 paper from player-arg give 1 string named "&2Słaby bandaż" to player-arg else: send "&cNie posiadasz papieru" to player-arg else: if arg-1 is "2": if player-arg has 3 paper: if player-arg has 1 string: remove 3 paper from player-arg remove 1 string from player-arg give 1 string named "&2Średni bandaż" to player-arg else: send "&cNie posiadasz nici" to player-arg else: send "&cNie posiadasz 3 sztuk papieru" to player-arg else: if arg-1 is "3": if player-arg has 4 paper: if player-arg has 3 string: remove 4 paper from player-arg remove 3 string from player-arg give 1 string named "&2Militarny bandaż" to player-arg else: send "&cNie posiadasz nici" to player-arg else: send "&cNie posiadasz papieru" to player-arg else: if arg-1 is "4": if player-arg has 5 sugar: remove 5 sugar from player-arg give 1 light green dye named "&2Zielona kapsułka" to player-arg else: send "&cNie posiadasz cukru" to player-arg else: if arg-1 is "5": if player-arg has 2 sugar: if player-arg has 3 potato: remove 3 potato from player-arg remove 2 sugar from player-arg give 1 light blue dye named "&2Niebieska kapsułka" to player-arg else: send "&cNie posiadasz ziemniaków" to player-arg else: send "&cNie posiadasz cukru" to player-arg on rightclick: if player's tool is glass_bottle: if targeted block is water: remove 1 glass_bottle from player give 1 water_bottle named "&2Woda niezdatna do picia" to player else: if player's tool is brick: if name of player's tool is "&2Baton czekoladowy": add 2 to player's hunger level remove 1 brick named "&2Baton czekoladowy" from player else: if name of player's tool is "&2Baton energetyczny": add 4 to player's hunger level apply potion of haste of tier 2 to player for 10 seconds remove 1 brick named "&2Baton energetyczny" from player else: if player's tool is string: if name of player's tool is "&2Słaby bandaż": remove potion of wither from player else: if name of player's tool is "&2Średni bandaż": remove potion of wither from player remove potion of slowness from player else: if name of player's tool is "&2Militarny bandaż": remove potion of slowness from player remove potion of wither from player apply potion of regeneration of tier 1 to player for 10 seconds on eat: if player's tool is water_bottle: if name of player's tool is "&2Woda niezdatna do picia": add -2 to player's level send "&cTa woda nie jest zdatna do picia, efektem jest utrata 2 punktów pragnienia" to player else: if name of player's tool is "&2Woda pitna": if player's level + 3 is smaller than 50: add 3 to player's level send "&cNegatywne skutki odwodnienia znikną niedługo" to player else: send "&cPoziom pragnienia nie może przekroczyć &a50" to player else: if name of player's tool is "Woda z cukrem": if player's level + 4 is smaller than 50: add 4 to player's level apply potion of haste of tier 1 to player for 10 seconds send "&cNegatywne skutki odwodnienia znikną niedługo" to player else: send "&cPoziom pragnienia nie może przekroczyć &a50" to player else: if name of player's tool is "&2Domowy energetyk": if player's level + 4 is smaller than 50: add 4 to player's level apply potion of haste of tier 1 to player for 30 seconds send "&cNegatywne skutki odwodnienia znikną niedługo" to player else: send "&cPoziom pragnienia nie może przekroczyć &a50" to player else: if name of player's tool is "&2Domowy izotonik": if player's level + 15 is smaller than 50: add 15 to player's level apply potion of strength of tier 1 to player for 10 seconds send "&cNegatywne skutki odwodnienia znikną niedługo" to player else: send "&cPoziom pragnienia nie może przekroczyć &a50" to player else: if name of player's tool is "&2Kawa": if player's level + 1 is smaller than 50: apply potion of haste of tier 3 to player for 10 seconds send "&cNegatywne skutki odwodnienia znikną niedługo" to player else: send "&cPoziom pragnienia nie może przekroczyć &a50" to player else: if player's tool is soup: if name of player's tool is "&2Mieszanka proteinowa": add 7 to player's hunger level add 10 to player's level send "&cNegatywne skutki odwodnienia znikną niedługo" to player remove 1 soup named "&2Mieszanka proteinowa" from player chance of 50%: heal player on damage: if victim is a player: if damage is caused by fall: chance of 30%: apply potion of slowness of tier 2 to victim for 2 minutes stop chance of 30%: apply potion of slowness of tier 2 to victim for 1 minutes stop chance of 30%: apply potion of wither of tier 1 to victim for 5 seconds stop chance of 10%: apply potion of slowness of tier 2 to victim for 2 minutes apply potion of wither of tier 1 to victim for 5 seconds stop else: if attacker is a zombie: if victim is a player: chance of 5%: apply potion of poison of tier 1 to victim for 3 seconds chance of 5%: apply potion of blindness of tier 5 to victim for 3 seconds on death: victim is a player attacker is a zombie spawn 1 zombie at victim set name of last spawned entity to "&c&l%victim%" on xp spawn: cancel event