Lightning Damage and fireballs

  • 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 community!

    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.

WiebeHero

Active Member
Aug 23, 2017
135
5
0
So im WiebeHero and i have been working on custom enchants and so on so on and have been doing great so but i got 2 problems with lightning and fireballs here is the code i have now for them both.

on damage:
attacker is player
chance of 100%
if the 1st line of lore of attacker's held item contains "Paralyze I":
strike lightning at location of victim
apply slow 20 to victim for 5 seconds
loop 50 times:
play entity effect hurt at victim
wait 0.1 second

on rightclick:
player is holding a blaze rod
if the 1st line of lore of player's held item contains "Large Fireball I":
shoot a fireball from player

1. Lightning i want it so the attacker doesnt get damaged by the lightning as well
2. Fireball How to shoot a large fireball, how to get a cooldown for such a rightclick enchant and how i could change the damage that the fireball does (Increase)

If you guys could help me with this it would be great! Thanks! :emoji_grinning:
 
to make the lightning not the damage attacker you can do this
code_language.skript:
strike lightning effect at the victim #doesnt damage anyone
damage victim by 5 #damage the victim by how ever much lightning does (idk off the top of my head)
 
Hey donut thank you! dan another question for you about that cooldown with 'skript mirror' can you maybe help me with that? Or rely more info? like i have no idea about it
 
Thanks! But there is still 1 thing why this thread isnt solved the only thing is the fireball...
 
Status
Not open for further replies.