Solved no fire at lightning strikes

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Navid

Member
Jan 11, 2018
13
0
1
20
soo, im trying to make the "Axe of Perun" like the one in hypixel uhc, but when the lightning strikes, fire comes with it and ruins it much. heres the skript i got:
on damage:
if projectile exists:
stop
else:
attacker is a player:
victim is not a player:
attacker is holding diamond axe named "&6Axe of Perun"
wait 1 tick
if {smite.timer} is above 1:
stop
if {smite.timer} is 0:
strike lightning at the victim <-- i dont want the fire here!
set {smite.timer} to 5 <-- and also wanna make it personal cooldown, not global
stop

every second:
if {smite.timer} is 0:
stop
else:
remove 1 from {smite.timer}

command /perun:
trigger:
player has permission "perun.get.sk":
give 1 diamond axe named "&6Axe of Perun" to player

command /peru:
permission: "perun.peru.sk"
trigger:
set {smite.timer} to 0
send "&fYou can now use &6Axe of Perun"
 
strike lightning effect at victim
this removes the damage which i'm pretty sure this dude doesn't want. the 2 potential solutions are cancelling the block ignite event for lightning if it's done within a tick or two of the lightning being spawned, or damaging manually after spawning a lightning effect
 
Status
Not open for further replies.