options: Nazwa sklepu: &c&lKowal variables: {Upgrade.%player%} = 1 {Upgrade.Por.%player%} = 1 {Upgrade.Zbr.%player%} = 1 {Upgrade.Spe.%player%} = 1 {Dodatkowy.Damage.%player%} = 0 {PozSklep} = 0 command /wzmocnienia []: permission: Admin.Wzmocnienia trigger: give player 1 nether star named "&cWzmacniacz ostrza" give player 1 blaze powder named "&6Wzmacniacz &erękojeści" give player 1 Nether brick named "&cWzmocniona ruda adamantytu" give player 1 Feather named "&6Pióro Feniksa" give player 1 Iron ingot named "&fMetal &cKowala" give player 1 book named "&6&lKsięga Kowala" command /ResetWzmocnien []: permission: Admin.ResetWzmocnien trigger: if arg-1 is set: set {Upgrade.%arg-1%} to 1 set {Upgrade.Por.%arg-1%} to 1 set {Upgrade.Zbr.%arg-1%} to 1 set {Upgrade.Spe.%arg-1%} to 1 send "&8> &7Wzmocnienia gracza &8(&7%arg-1%&8)&7 zostały &czresetowane" to player else: send "&8> &7Poprawne użycie: &a/ResetWzmocnien &8<&aplayer&8>" command /StworzSklep []: permission: Admin.StworzSklep trigger: spawn 1 villager at player's location set name of spawned entity to "{@Nazwa sklepu}" set the walk speed of the last spawned entity to 0 #Kowal - anty damage - włączanie sklepu #Kowal - anty damage - włączanie sklepu on damage: if name of victim is "{@Nazwa sklepu}": cancel event on rightclick on entity: if name of entity is "{@Nazwa sklepu}": cancel event close player's inventory wait 2 ticks open chest with 1 row named "&cKowal" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 1 of player's current inventory to Diamond sword named "&cWzmocnienia &costrza" with lore "&7Kliknij aby przejść" set slot 3 of player's current inventory to Blaze rod named "&cWzmocnienia &6rękojeści" with lore "&7Kliknij aby przejść" set slot 5 of player's current inventory to Diamond chestplate named "&cWzmocnienia &fpancerza" with lore "&7Kliknij aby przejść" set slot 7 of player's current inventory to Diamond boots named "&cWzmocnienie &bszybkości" with lore "&7Kliknij aby przejść" on inventory click: if inventory name of current inventory of player is "&cKowal": cancel event play raw sound "random.pop" at player with pitch 1 volume 5 if clicked slot is 1: close player's inventory wait 2 ticks open chest with 1 row named "&cWzmocnienia ostrza" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Nether star named "&cUlepsz ostrze %{Upgrade.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz ostrza||&7- &aKoszt: %(({Upgrade.%player%}+1)*1500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Diamond sword named "&cUlepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.%player%}+1)*5000)%$" if clicked slot is 3: close player's inventory wait 2 ticks open chest with 1 row named "&6Wzmoc&Enienia &6Ręko&ejeści" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to blaze rod named "&6Ulepsz rękojeści %{Upgrade.Por.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.Por.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz rękojeści||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*2500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to blaze powder named "&6Ulepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*7500)%$" if clicked slot is 5: close player's inventory wait 2 ticks open chest with 1 row named "&6Wzmocnienie &fpancerza" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to nether brick named "&cUlepsz zbroję %{Upgrade.Zbr.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(5*{Upgrade.zbr.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmocniona ruda adamantytu||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*15000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to fire charge named "&cUlepsz &eWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*35000)%$" if clicked slot is 7: close player's inventory wait 2 ticks open chest with 1 row named "&fWzmocnienie &bszybkości" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Feather named "&fUlepsz &bszybkość %{Upgrade.Spe.%player%}%" with lore "&7Wymagania: ||&7- &8Przedmiot &6Pióro Feniksa||&7- &aKoszt: %(({Upgrade.Spe.%player%}+1)*2000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Eye of ender named "&cUlepsz &bWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Spe.%player%}+1)*5000)%$" on inventory click: if inventory name of current inventory of player is "&cWzmocnienia ostrza": cancel event if clicked slot is 3: if player's tool is not air: if player's balance >= (({Upgrade.%player%}+1)*1500): if player has nether star named "&cWzmacniacz ostrza": if lore of player's tool contains "&7Wzmocnienie &c%{Upgrade.%player%}% &7Stopnia": send "" send "&8> &7Broń jest już ulepszona na ten poziom. (%{Upgrade.%player%}%)" to player send "&8> &cUlepsz wzmocnienie, aby kontynuować upgradeowanie." to player send "" else: if player has 1 book named "&6&lKsięga Kowala": play raw sound "random.anvil_use" at player with pitch 1 volume 5 remove book named "&6&lKsięga Kowala" from player remove nether star named "&cWzmacniacz ostrza" from player remove (({Upgrade.%player%}+1)*1500) from player's balance set lore of player's tool to "%lore of player's tool%||&7Wzmocnienie &c%{Upgrade.%player%}% &7Stopnia" close player's inventory open chest with 1 row named "&cWzmocnienia ostrza" to player send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.%player%}%" send "" loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Nether star named "&cUlepsz ostrze %{Upgrade.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz ostrza||&7- &aKoszt: %(({Upgrade.%player%}+1)*1500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Diamond sword named "&cUlepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.%player%}+1)*5000)%$" else: chance of (100-(10+(10*{Upgrade.%player%})))%: play raw sound "random.anvil_use" at player with pitch 1 volume 5 remove nether star named "&cWzmacniacz ostrza" from player remove (({Upgrade.%player%}+1)*1500) from player's balance set lore of player's tool to "%lore of player's tool%||&7Wzmocnienie &c%{Upgrade.%player%}% &7Stopnia" close player's inventory open chest with 1 row named "&cWzmocnienia ostrza" to player send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.%player%}%" send "" loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Nether star named "&cUlepsz ostrze %{Upgrade.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz ostrza||&7- &aKoszt: %(({Upgrade.%player%}+1)*1500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Diamond sword named "&cUlepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.%player%}+1)*5000)%$" else: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if player has 1 iron ingot named "&fMetal &cKowala": send "" send "&8> &7Twoja broń się &czepsuła!" to player send "&8> &7Na &aszczęście miałeś ze sobą &fMetal &cKowala" to player send "" remove nether star named "&cWzmacniacz ostrza" from player remove (({Upgrade.%player%}+1)*1500) from player's balance close player's inventory remove iron ingot named "&fMetal &cKowala" from player else: send "" send "&8> &7Twoja broń się &czepsuła&7!" to player send "&8> &7Na przyszłość weź ze sobą &fMetal &cKowala" to player send "" remove nether star named "&cWzmacniacz ostrza" from player remove (({Upgrade.%player%}+1)*1500) from player's balance set player's tool to air close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Musisz coś trzymać w ręku, by to ulepszyć." send "&8> &7Uważaj, żeby ulepszać tylko swoją broń." send "" else: play raw sound "random.pop" at player with pitch 1 volume 5 on inventory click: if inventory name of current inventory of player is "&cWzmocnienia ostrza": cancel event if clicked slot is 5: if {Upgrade.%player%} >= 5: cancel event send "" send "&8> &7Wzmocnienie zostało ulepszone na &cmaksymalny poziom." send "&8> &8Nie możesz już tego ulepszyć." send "" else: if player's balance >= (({Upgrade.%player%}+1)*5000): remove (({Upgrade.%player%}+1)*5000) from player's balance set {Upgrade.%player%} to {Upgrade.%player%}+1 close player's inventory open chest with 1 row named "&cWzmocnienia ostrza" to player send "" send "&8> &7Wzmocnienie zostało &aulepszone." send "&8> &8Aktualny level: &6%{Upgrade.%player%}%" send "" loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Nether star named "&cUlepsz ostrze %{Upgrade.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz ostrza||&7- &aKoszt: %(({Upgrade.%player%}+1)*1500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Diamond sword named "&cUlepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.%player%}+1)*5000)%$" else: close player's inventory # Wzmacnianie rękojeści on inventory click: if inventory name of current inventory of player is "&6Wzmoc&Enienia &6ręko&ejeści": cancel event if clicked slot is 3: if player's tool is not air: if player's balance >= (({Upgrade.Por.%player%}+1)*2500): if player has blaze powder named "&6Wzmacniacz &erękojeści": if lore of player's tool contains "&7Wzmocnienie rękojeści &c%{Upgrade.Por.%player%}% &7Stopnia": send "" send "&8> &7Poręcz jest już ulepszona na ten poziom. (%{Upgrade.Por.%player%}%)" to player send "&8> &cUlepsz wzmocnienie, aby kontynuować upgradeowanie." to player send "" else: if player has 1 book named "&6&lKsięga Kowala": play raw sound "random.anvil_use" at player with pitch 1 volume 5 remove book named "&6&lKsięga Kowala" from player remove Blaze powder named "&6Wzmacniacz &erękojeści" from player remove (({Upgrade.Por.%player%}+1)*2500) from player's balance set lore of player's tool to "%lore of player's tool%||&7Wzmocnienie rękojeści &c%{Upgrade.Por.%player%}% &7Stopnia" send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.Por.%player%}%" send "" close player's inventory open chest with 1 row named "&6Wzmoc&Enienia &6Ręko&ejeści" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to blaze rod named "&6Ulepsz rękojeści %{Upgrade.Por.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.Por.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz rękojeści||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*2500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to blaze powder named "&6Ulepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*7500)%$" else: chance of (100-(10+(10*{Upgrade.Por.%player%})))%: play raw sound "random.anvil_use" at player with pitch 1 volume 5 remove Blaze powder named "&6Wzmacniacz &erękojeści" from player remove (({Upgrade.Por.%player%}+1)*2500) from player's balance set lore of player's tool to "%lore of player's tool%||&7Wzmocnienie rękojeści &c%{Upgrade.Por.%player%}% &7Stopnia" send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.Por.%player%}%" send "" close player's inventory open chest with 1 row named "&6Wzmoc&Enienia &6Ręko&ejeści" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to blaze rod named "&6Ulepsz rękojeści %{Upgrade.Por.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.Por.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz rękojeści||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*2500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to blaze powder named "&6Ulepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*7500)%$" else: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if player has 1 iron ingot named "&fMetal &cKowala": remove iron ingot named "&fMetal &cKowala" from player send "" send "&8> &7Twoja broń się &czepsuła!" to player send "&8> &7Na &aszczęście miałeś ze sobą &fMetal &cKowala" to player send "" remove Blaze powder named "&6Wzmacniacz &erękojeści" from player remove (({Upgrade.Por.%player%}+1)*2500) from player's balance close player's inventory else: send "" send "&8> &7Twoja broń się &czepsuła&7!" to player send "&8> &7Na przyszłość weź ze sobą &fMetal &cKowala" to player send "" remove Blaze powder named "&6Wzmacniacz &erękojeści" from player remove (({Upgrade.Por.%player%}+1)*2500) from player's balance set player's tool to air close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Musisz coś trzymać w ręku, by to ulepszyć." send "&8> &7Uważaj, żeby ulepszać tylko swoją broń." send "" else: play raw sound "random.pop" at player with pitch 1 volume 5 # on inventory click: if inventory name of current inventory of player is "&6Wzmoc&Enienia &6Ręko&ejeści": cancel event if clicked slot is 5: if {Upgrade.Por.%player%} >= 5: cancel event send "" send "&8> &7Wzmocnienie zostało ulepszone na &cmaksymalny poziom." send "&8> &8Nie możesz już tego ulepszyć." send "" else: if player's balance >= (({Upgrade.Por.%player%}+1)*7500): remove (({Upgrade.Por.%player%}+1)*7500) from player's balance set {Upgrade.Por.%player%} to {Upgrade.Por.%player%}+1 send "" send "&8> &7Wzmocnienie zostało &aulepszone." send "&8> &8Aktualny level: &6%{Upgrade.Por.%player%}%" send "" close player's inventory open chest with 1 row named "&6Wzmoc&Enienia &6Ręko&ejeści" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to blaze rod named "&6Ulepsz rękojeści %{Upgrade.Por.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(10*{Upgrade.Por.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmacniacz rękojeści||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*2500)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to blaze powder named "&6Ulepsz Wzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Por.%player%}+1)*7500)%$" else: close player's inventory # Wzmacnianie Zbroji on inventory click: if inventory name of current inventory of player is "&6Wzmocnienie &fpancerza": cancel event play raw sound "random.pop" at player with pitch 1 volume 5 if clicked slot is 3: if player's tool is diamond helmet or diamond chestplate or diamond leggings or diamond boots or iron helmet or iron chestplate or iron leggings or iron boots or golden helmet or golden chestplate or golden leggings or golden boots or chain helmet or chain chestplate or chain leggings or chain boots or leather cap or leather tunic or leather pants or leather boots: if player's balance >= (({Upgrade.Zbr.%player%}+1)*15000): if player has blaze powder named "&6Wzmacniacz &erękojeści": if lore of player's tool contains "&7Wzmocnienie &cadamantytem &4%{Upgrade.Zbr.%player%}% &7Stopnia": send "" send "&8> &7Zbroja jest już ulepszona na ten poziom. (%{Upgrade.Zbr.%player%}%)" to player send "&8> &cUlepsz wzmocnienie, aby kontynuować upgradeowanie." to player send "" else: if player has 1 book named "&6&lKsięga Kowala": play raw sound "random.anvil_use" at player with pitch 1 volume 5 remove book named "&6&lKsięga Kowala" from player remove Nether brick named "&cWzmocniona ruda adamantytu" from player remove (({Upgrade.Zbr.%player%}+1)*15000) from player's balance set lore of player's tool to "%lore of player's tool%||&7Wzmocnienie &cadamantytem &4%{Upgrade.Zbr.%player%}% &7Stopnia" send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.Zbr.%player%}%" send "" close player's inventory wait 2 ticks open chest with 1 row named "&6Wzmocnienie &fpancerza" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to nether brick named "&cUlepsz zbroję %{Upgrade.Zbr.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(5*{Upgrade.zbr.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmocniona ruda adamantytu||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*15000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to fire charge named "&cUlepsz &eWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*35000)%$" else: chance of (100-(5+(10*{Upgrade.Zbr.%player%})))%: play raw sound "random.anvil_use" at player with pitch 1 volume 5 remove Nether brick named "&cWzmocniona ruda adamantytu" from player remove (({Upgrade.Zbr.%player%}+1)*15000) from player's balance set lore of player's tool to "%lore of player's tool%||&7Wzmocnienie &cadamantytem &4%{Upgrade.Zbr.%player%}% &7Stopnia" send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.Zbr.%player%}%" send "" close player's inventory open chest with 1 row named "&6Wzmocnienie &fpancerza" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to nether brick named "&cUlepsz zbroję %{Upgrade.Zbr.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(5*{Upgrade.zbr.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmocniona ruda adamantytu||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*15000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to fire charge named "&cUlepsz &eWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*35000)%$" else: play raw sound "random.anvil_break" at player with pitch 1 volume 5 if player has 1 iron ingot named "&fMetal &cKowala": remove iron ingot named "&fMetal &cKowala" from player send "" send "&8> &7Twoja zbroja się &czepsuła!" to player send "&8> &7Na &aszczęście miałeś ze sobą &fMetal &cKowala" to player send "" remove Nether brick named "&cWzmocniona ruda adamantytu" from player remove (({Upgrade.Zbr.%player%}+1)*15000) from player's balance close player's inventory else: send "" send "&8> &7Twoja zbroja się &czepsuła&7!" to player send "&8> &7Na przyszłość weź ze sobą &fMetal &cKowala" to player send "" remove Nether brick named "&cWzmocniona ruda adamantytu" from player remove (({Upgrade.Zbr.%player%}+1)*15000) from player's balance set player's tool to air close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Wzmocnienie pancerza można nałożyć tylko" send "&8> &7na zbroję, Bo po co komu to na broni? " send "" # on inventory click: if inventory name of current inventory of player is "&6Wzmocnienie &fpancerza": cancel event if clicked slot is 5: if {Upgrade.Zbr.%player%} >= 5: cancel event send "" send "&8> &7Wzmocnienie zostało ulepszone na &cmaksymalny poziom." send "&8> &8Nie możesz już tego ulepszyć." send "" else: if player's balance >= (({Upgrade.Zbr.%player%}+1)*35000): remove (({Upgrade.Zbr.%player%}+1)*35000) from player's balance set {Upgrade.Zbr.%player%} to {Upgrade.Zbr.%player%}+1 send "" send "&8> &7Wzmocnienie zostało &aulepszone." send "&8> &8Aktualny level: &6%{Upgrade.Zbr.%player%}%" send "" close player's inventory wait 2 ticks open chest with 1 row named "&6Wzmocnienie &fpancerza" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to nether brick named "&cUlepsz zbroję %{Upgrade.Zbr.%player%}%" with lore "&7Szanse na spalenie: &c%(10+(5*{Upgrade.zbr.%player%}))% ||&7Wymagania: ||&7- &8Przedmiot &cWzmocniona ruda adamantytu||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*15000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to fire charge named "&cUlepsz &eWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Zbr.%player%}+1)*35000)%$" else: close player's inventory # Wzmacnianie Prędkości on inventory click: if inventory name of current inventory of player is "&fWzmocnienie &bszybkości": cancel event play raw sound "random.pop" at player with pitch 1 volume 5 if clicked slot is 3: if player's tool is diamond boots or iron boots or gold boots or chain boots or leather boots: if player's balance >= (({Upgrade.Spe.%player%}+1)*2000): if player has Feather named "&6Pióro Feniksa": if lore of player's tool contains "&cWzmocnione &fpiórami &6feniksa &b%{Upgrade.Spe.%player%}%": send "" send "&8> &7Buty są już ulepszone na ten poziom. (%{Upgrade.Spe.%player%}%)" to player send "&8> &cUlepsz wzmocnienie, aby kontynuować upgradeowanie." to player send "" else: remove Feather named "&6Pióro Feniksa" from player remove (({Upgrade.Spe.%player%}+1)*2000) from player's balance set lore of player's tool to "%lore of player's tool%||&cWzmocnione &fpiórami &6feniksa &b%{Upgrade.Spe.%player%}%" send "" send "&8> &7Wzmocnienie zostało &anałożone," send "&8> &8Aktualny poziom &6%{Upgrade.Spe.%player%}%" send "" close player's inventory wait 2 ticks open chest with 1 row named "&fWzmocnienie &bszybkości" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Feather named "&fUlepsz &bszybkość %{Upgrade.Spe.%player%}%" with lore "&7Wymagania: ||&7- &8Przedmiot &6Pióro Feniksa||&7- &aKoszt: %(({Upgrade.Spe.%player%}+1)*2000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Eye of ender named "&cUlepsz &bWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Spe.%player%}+1)*5000)%$" else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Nie posiadasz wszystkich potrzebnych przedmiotów!" send "&8> &7Wszystkie potrzebne rzeczy znajdziesz na ulepszeniach" send "" close player's inventory else: send "" send "&8> &7Musisz trzymać jakieś buty, by to ulepszyć." send "&8> &7Ulepszenie szybkości można nałożyć tylko na buty" send "" # on inventory click: if inventory name of current inventory of player is "&fWzmocnienie &bszybkości": cancel event if clicked slot is 5: if {Upgrade.Spe.%player%} >= 5: cancel event send "" send "&8> &7Wzmocnienie zostało ulepszone na &cmaksymalny poziom." send "&8> &8Nie możesz już tego ulepszyć." send "" else: if player's balance >= (({Upgrade.Spe.%player%}+1)*5000): remove (({Upgrade.Spe.%player%}+1)*5000) from player's balance set {Upgrade.Spe.%player%} to {Upgrade.Spe.%player%}+1 send "" send "&8> &7Wzmocnienie zostało &aulepszone." send "&8> &8Aktualny level: &6%{Upgrade.Spe.%player%}%" send "" close player's inventory wait 2 ticks open chest with 1 row named "&6Wzmocnienie &fpancerza" to player close player's inventory wait 2 ticks open chest with 1 row named "&fWzmocnienie &bszybkości" to player loop 9 times: set player's current inventory's slot loop-number -1 to black stained glass pane named " " set slot 3 of player's current inventory to Feather named "&fUlepsz &bszybkość %{Upgrade.Spe.%player%}%" with lore "&7Wymagania: ||&7- &8Przedmiot &6Pióro Feniksa||&7- &aKoszt: %(({Upgrade.Spe.%player%}+1)*2000)%$" set slot 4 of player's current inventory to red stained glass pane named "&7Info " with lore "&8Upgraduje się przedmiot który trzymasz w ręcę" set slot 5 of player's current inventory to Eye of ender named "&cUlepsz &bWzmocnienie" with lore "&7Wymagania: ||&7- &aKoszt: %(({Upgrade.Spe.%player%}+1)*5000)%$" else: close player's inventory # Statystyki on damage: if attacker is player: if lore of attacker's tool contains "Wzmocnienie &c5 &7Stopnia": set {Dodatkowy.Damage.%attacker%} to 2.5 set damage to (damage + (damage * {Dodatkowy.Damage.%attacker%})) else: if lore of attacker's tool contains "Wzmocnienie &c4 &7Stopnia": set {Dodatkowy.Damage.%attacker%} to 2 set damage to (damage + (damage * {Dodatkowy.Damage.%attacker%})) else: if lore of attacker's tool contains "Wzmocnienie &c3 &7Stopnia": set {Dodatkowy.Damage.%attacker%} to 1.5 set damage to (damage + (damage * {Dodatkowy.Damage.%attacker%})) else: if lore of attacker's tool contains "Wzmocnienie &c2 &7Stopnia": set {Dodatkowy.Damage.%attacker%} to 1 set damage to (damage + (damage * {Dodatkowy.Damage.%attacker%})) else: if lore of attacker's tool contains "Wzmocnienie &c1 &7Stopnia": set {Dodatkowy.Damage.%attacker%} to 0.5 set damage to (damage + (damage * {Dodatkowy.Damage.%attacker%})) on damage: if attacker is player: if victim is player: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c5 &7Stopnia": send "Player" apply Wither potion of tier 5 to the victim for 5 second apply Poison potion of tier 5 to the victim for 5 second apply Confusion potion of tier 5 to the victim for 5 second apply SLOW DIGGING potion of tier 5 to the victim for 2 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c4 &7Stopnia": apply Wither potion of tier 3 to the victim for 5 second apply Poison potion of tier 4 to the victim for 5 second apply SLOW DIGGING potion of tier 3 to the victim for 2 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c3 &7Stopnia": apply Wither potion of tier 2 to the victim for 5 second apply Poison potion of tier 2 to the victim for 5 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c2 &7Stopnia": apply Wither potion of tier 1 to the victim for 5 second apply Poison potion of tier 2 to the victim for 5 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c1 &7Stopnia": apply Poison potion of tier 1 to the victim for 5 second if victim is player or zombie or skeleton or wolf or silverfish or spider or witch or zombie pigman or enderman or cave spider or creeper: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c5 &7Stopnia": broadcast "Test Apply 5" remove regeneration from attacker remove strength from attacker remove speed from attacker apply regeneration 5 to attacker for 10 second apply strength 3 to attacker for 5 second apply speed 2 to attacker for 5 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c4 &7Stopnia": remove regeneration from attacker remove strength from attacker remove speed from attacker apply regeneration 4 to attacker for 8 second apply strength 2 to attacker for 4 second apply speed 1 to attacker for 5 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c3 &7Stopnia": remove regeneration from attacker remove strength from attacker apply regeneration 3 to attacker for 6 second apply strength 1 to attacker for 3 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c2 &7Stopnia": remove regeneration from attacker apply regeneration 2 to attacker for 10 second else: if lore of attacker's tool contains "&7Wzmocnienie rękojeści &c1 &7Stopnia": remove regeneration from attacker apply regeneration 1 to attacker for 3 second # efekt zbroi on damage: if victim is player: if lore of victim's helmet contains "&7Wzmocnienie &cadamantytem &45 &7Stopnia": set damage to (damage - 250) else: if lore of victim's helmet contains "&7Wzmocnienie &cadamantytem &44 &7Stopnia": set damage to (damage - 200) else: if lore of victim's helmet contains "&7Wzmocnienie &cadamantytem &43 &7Stopnia": set damage to (damage - 135) else: if lore of victim's helmet contains "&7Wzmocnienie &cadamantytem &42 &7Stopnia": set damage to (damage - 75) else: if lore of victim's helmet contains "&7Wzmocnienie &cadamantytem &41 &7Stopnia": set damage to (damage - 25) on damage: if victim is player: if lore of victim's chestplate contains "&7Wzmocnienie &cadamantytem &45 &7Stopnia": set damage to (damage - 250) else: if lore of victim's chestplate contains "&7Wzmocnienie &cadamantytem &44 &7Stopnia": set damage to (damage - 200) else: if lore of victim's chestplate contains "&7Wzmocnienie &cadamantytem &43 &7Stopnia": set damage to (damage - 135) else: if lore of victim's chestplate contains "&7Wzmocnienie &cadamantytem &42 &7Stopnia": set damage to (damage - 75) else: if lore of victim's chestplate contains "&7Wzmocnienie &cadamantytem &41 &7Stopnia": set damage to (damage - 25) on damage: if victim is player: if lore of victim's leggings contains "&7Wzmocnienie &cadamantytem &45 &7Stopnia": set damage to (damage - 250) else: if lore of victim's leggings contains "&7Wzmocnienie &cadamantytem &44 &7Stopnia": set damage to (damage - 200) else: if lore of victim's leggings contains "&7Wzmocnienie &cadamantytem &43 &7Stopnia": set damage to (damage - 135) else: if lore of victim's leggings contains "&7Wzmocnienie &cadamantytem &42 &7Stopnia": set damage to (damage - 75) else: if lore of victim's leggings contains "&7Wzmocnienie &cadamantytem &41 &7Stopnia": set damage to (damage - 25) on damage: if victim is player: if lore of victim's boots contains "&7Wzmocnienie &cadamantytem &45 &7Stopnia": set damage to (damage - 250) else: if lore of victim's boots contains "&7Wzmocnienie &cadamantytem &44 &7Stopnia": set damage to (damage - 200) else: if lore of victim's boots contains "&7Wzmocnienie &cadamantytem &43 &7Stopnia": set damage to (damage - 135) else: if lore of victim's boots contains "&7Wzmocnienie &cadamantytem &42 &7Stopnia": set damage to (damage - 75) else: if lore of victim's boots contains "&7Wzmocnienie &cadamantytem &41 &7Stopnia": set damage to (damage - 25) # Efekt szybkość on sharpsk armor equip: if lore of event-item is "&cWzmocnione &fpiórami &6feniksa &b5": apply speed 6 to player for 99999 second else: if lore of event-item is "&cWzmocnione &fpiórami &6feniksa &b4": apply speed 5 to player for 99999 second else: if lore of event-item is "&cWzmocnione &fpiórami &6feniksa &b3": apply speed 4 to player for 99999 second else: if lore of event-item is "&cWzmocnione &fpiórami &6feniksa &b2": apply speed 3 to player for 99999 second else: if lore of event-item is "&cWzmocnione &fpiórami &6feniksa &b1": apply speed 2 to player for 99999 second on sharpsk armor unequip: if lore of event-item is "&cWzmocnione &fpiórami &6feniksa &b1" or "&cWzmocnione &fpiórami &6feniksa &b2" or "&cWzmocnione &fpiórami &6feniksa &b3" or "&cWzmocnione &fpiórami &6feniksa &b4" or "&cWzmocnione &fpiórami &6feniksa &b5": remove speed from player