# Nazwa: VortexRod # Autor: DaltonEZ # Wersja: 1.0 # Zakaz usuwanie podpisu autora skriptu. # Zakaz podpisywania skriptu wlasnym nickiem. variables: {vortex::%player%} = true {fireball::%player%} = 0 {upadek::%player%} = true on rightclick: if player's tool is blaze rod named "&bVortex" with lore "&8*ppm* Lot feniksa||&8*lpm* Ognista kula": if {vortex::%player%} is true: push the player upwards at velocity 2 push the player horizontally forward at speed 20 set {vortex::%player%} to false set {upadek::%player%} to false wait 10 second set {upadek::%player%} to true wait 5 second set {vortex::%player%} to true else: send "&c[&eVortex&c] &7Lot feniksa bedzie aktywny za 60 sec." on leftclick: if player's tool is blaze rod named "&bVortex" with lore "&8*ppm* Lot feniksa||&8*lpm* Ognista kula": if {fireball::%player%} is 0: make the player shoot an fireball at speed 1 wait a tick set {fireball::%player%} to 1 stop if {fireball::%player%} is 1: make the player shoot an fireball at speed 1 wait a tick set {fireball::%player%} to 2 wait 10 second set {fireball::%player%} to 0 if {fireball::%player%} is 2: send "&c[&eVortex&c] &7Ognista kula bedzie aktywna za 30 sec." command /vortex: trigger: if player has permission "vortex.give": add blaze rod named "&bVortex" with lore "&8*ppm* Lot feniksa||&8*lpm* Ognista kula" to the player on damage: damage is caused by fall: if {upadek::%victim%} is false: cancel event on script load: loop all players: set {vortex::%loop-player%} to true set {fireball::%loop-player%} to 0 set {upadek::%loop-player%} to true