variables: {fly.%player%} = false options: ItemPiorun1: 10 diamond #Item potrzebny do stworzenia Rozdzki Piorunow PiorunMessage: &cNie masz 10 &cDiamentow #Wiadomosc kiedy nie ma sie 10 diamentow LatanieItem1: 10 slimeball LatanieMessage: &cNie masz 10 &aslimeballi ItemUleczanie: 10 emerald MessageUleczanie: &cNie masz 10 &aemeraldow command /hpwands []: trigger: if arg 1 is empty: message "&c~ &aHPWands &c~" message "&c/HpWands piorun&7- rozdzka strzelajaca piorunami" stop if arg 1 is not set: execute player command "hpwands pomoc" stop if arg 1 is "pomoc": message "&c~ &aHPWands &c~" message "&c/HpWands piorun&7- rozdzka strzelajaca piorunami" message "&c/HpWand latanie&7-rozdzka pozwalajaca latanie" message "&c/HPwand uleczanie&7-rozdzka uleczajaca" message "&cCzekam na dalsze&7-&aSortiq" stop if arg 1 is "piorun": player has {@ItemPiorun1}: remove {@ItemPiorun1} from player give a 280 of smite 3 named "&cRozdzka &bpiorunow" to the player else: message "{@PiorunMessage}" if arg 1 is "latanie": player has {@LatanieItem1}: remove {@LatanieItem1} from player give a 280 of unbreaking 5 named "&cRozdzka &blatania" to the player else: message "{@LatanieMessage}" if arg 1 is "uleczanie": player has {@ItemUleczanie}: remove {@ItemUleczanie} from player give a 280 of sharpness 1 named "&cRozdzka &buleczania" to the player else: message "{@MessageUleczanie}" on rightclick: if name of player's tool is "&cRozdzka &bpiorunow": strike lightning effect remove 1 280 of smite 3 named "&cRozdzka &bpiorunow" from player on rightclick: if name of player's tool is "&cRozdzka &blatania": execute console command "fly %player%" set {fly.%player%} to true wait 10 seconds execute console command "fly %player%" set {fly.%player%} to false remove 1 280 of unbreaking 5 named "&cRozdzka &blatania" from player on rightclick: if name of player's tool is "&cRozdzka &buleczania": heal the player remove 1 280 of sharpness 1 named "&cRozdzka &buleczania" from player on login: if {fly.%player%} is true: set {fly.%player%} to false