on join: clear player's inventory give 1 chest named "&eZestawy" to player apply saturation to player for 9999999 seconds on death of player: clear drops on respawn: clear player's inventory give 1 chest named "&eZestawy" to player apply saturation to player for 9999999 seconds on rightclick: if name of player's tool is "&eZestawy": open virtual hopper named "&eZestawy" to player wait 0.1 tick format gui slot 0 of player with iron sword named "&aTank" with lore "&7Stan sie czolgiem!||&7Posiadasz bardzo mocne uzbrojenie,||&7ale jestes bardzo wolny!" to close then run function Tank(player) with left click format gui slot 0 of player with iron sword named "&aTank" with lore "&7Stan sie czolgiem!||&7Posiadasz bardzo mocne uzbrojenie,||&7ale jestes bardzo wolny!" to close then run function TankInventory(player) with right click format gui slot 1 of player with rotten flesh named "&aZombie" with lore "&7Posiadasz x2 wiecej zycia!" to close then run function Zombie(player) with left click format gui slot 1 of player with rotten flesh named "&aZombie" with lore "&7Posiadasz x2 wiecej zycia!" to close then run function ZombieInventory(player) with right click format gui slot 2 of player with stone pickaxe named "&aGornik" with lore "&7Jako gornik posiadasz mocny kilof" to close then run function Gornik(player) with left click format gui slot 2 of player with stone pickaxe named "&aGornik" with lore "&7Jako gornik posiadasz mocny kilof" to close then run function GornikInventory(player) with right click format gui slot 3 of player with bow named "&aStrzelec" with lore "&7Jestes jednym z lepszych strzelcow w okolicy||&7Posiadasz bardzo mocny luk, lecz slabe uzbrojenie" to close then run function Strzelec(player) with left click format gui slot 3 of player with bow named "&aStrzelec" with lore "&7Jestes jednym z lepszych strzelcow w okolicy||&7Posiadasz bardzo mocny luk, lecz slabe uzbrojenie" to close then run function StrzelecInventory(player) with right click format gui slot 4 of player with bottle of enchanting named "&aCzarodziej" with lore "&7Jestes czarodziejem, rzucasz zaklecia na swe ofiary!" to close then run function Czarodziej(player) with left click format gui slot 4 of player with bottle of enchanting named "&aCzarodziej" with lore "&7Jestes czarodziejem, rzucasz zaklecia na swe ofiary!" to close then run function CzarodziejInventory(player) with right click if name of player's tool is "&aRzuc zaklecie": Zaklecie(player) cancel event function Zaklecie(p: player): send "&aRzuciles zaklecie!" to {_p} loop all players within 5 meters of {_p}: remove slowness from loop-player apply slowness to the loop-player for 10 seconds function Tank(p: player): set slot 0 of {_p} to iron sword set helmet of {_p} to diamond helmet set chestplate of {_p} to diamond chestplate set leggings of {_p} to diamond leggings set boots of {_p} to diamond boots apply slowness to {_p} for 9999999 seconds function TankInventory(p: player): open virtual hopper named "&aTank Inventory" to {_p} format gui slot 0 of {_p} with iron sword to close format gui slot 1 of {_p} with diamond helmet to close format gui slot 2 of {_p} with diamond chestplate to close format gui slot 3 of {_p} with diamond leggings to close format gui slot 4 of {_p} with diamond boots to close function Zombie(p: player): set slot 0 of {_p} to bone of sharpness 3 set helmet of {_p} to leather helmet of unbreaking 3 and protection 1 set chestplate of {_p} to leather chestplate of unbreaking 3 and protection 1 set leggings of {_p} to leather leggings of unbreaking 3 and protection 1 set boots of {_p} to leather boots of unbreaking 3 and protection 1 apply health boost 5 to {_p} for 9999999 seconds function ZombieInventory(p: player): open virtual hopper named "&aZombie Inventory" to {_p} format gui slot 0 of {_p} with bone of sharpness 3 to close format gui slot 1 of {_p} with leather helmet of unbreaking 3 and protection 1 to close format gui slot 2 of {_p} with leather chestplate of unbreaking 3 and protection 1 to close format gui slot 3 of {_p} with leather leggings of unbreaking 3 and protection 1 to close format gui slot 4 of {_p} with leather boots of unbreaking 3 and protection 1 to close function Gornik(p: player): set slot 0 of {_p} to stone pickaxe of sharpness 2 and unbreaking 2 set helmet of {_p} to diamond helmet of unbreaking 2 and protection 1 set chestplate of {_p} to leather chestplate of unbreaking 5 set leggings of {_p} to golden leggings of unbreaking 5 and protection 1 set boots of {_p} to leather boots of unbreaking 3 and protection 1 function GornikInventory(p: player): open virtual hopper named "&aGornik Inventory" to {_p} format gui slot 0 of {_p} with stone pickaxe of sharpness 2 and unbreaking 2 format gui slot 1 of {_p} with diamond helmet of unbreaking 2 and protection 1 format gui slot 2 of {_p} with leather chestplate of unbreaking 5 format gui slot 3 of {_p} with golden leggings of unbreaking 5 and protection 1 format gui slot 4 of {_p} with leather boots of unbreaking 3 and protection 1 function Strzelec(p: player): set slot 0 of {_p} to bow of power 2 and unbreaking 3 and infinity 1 set slot 1 of {_p} to arrow set helmet of {_p} to leather helmet of unbreaking 2 and protection 1 set chestplate of {_p} to golden chestplate of unbreaking 5 set leggings of {_p} to leather leggings of unbreaking 2 and protection 1 set boots of {_p} to leather boots of unbreaking 2 function StrzelecInventory(p: player): open virtual hopper named "&aStrzelec Inventory" to {_p} format gui slot 0 of {_p} with bow of power 2 and unbreaking 3 and infinity 1 format gui slot 1 of {_p} with leather helmet of unbreaking 2 and protection 1 format gui slot 2 of {_p} with golden chestplate of unbreaking 5 format gui slot 3 of {_p} with leather leggings of unbreaking 2 and protection 1 format gui slot 4 of {_p} with leather boots of unbreaking 2 function Czarodziej(p: player): set slot 0 of {_p} to stone sword of unbreaking 2 set slot 1 of {_p} to emerald named "&aRzuc zaklecie" with lore "&7Rzuc zaklecie spowolnienia na wszystkich||&7wokol 5 metrow!" set helmet of {_p} to chain helmet of unbreaking 2 set chestplate of {_p} to golden chestplate of unbreaking 2 and protection 1 set leggings of {_p} to leather leggings of unbreaking 2 and protection 1 set boots of {_p} to golden boots of unbreaking 2 function CzarodziejInventory(p: player): open virtual hopper named "&aCzarodziej Inventory" to {_p} format gui slot 0 of {_p} with stone sword of unbreaking 2 format gui slot 1 of {_p} with chain helmet of unbreaking 2 format gui slot 2 of {_p} with golden chestplate of unbreaking 2 and protection 1 format gui slot 3 of {_p} with leather leggings of unbreaking 2 and protection 1 format gui slot 4 of {_p} with golden boots of unbreaking 2