Solved i tried to make lighting sword

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

agakcw

New Member
Oct 19, 2023
9
0
1
So I've made a lighting sword but I have a problem that if the durability of the sword is weak then the lightning effect won't work, how do I fix it?


on damage:
if attacker is holding a diamond sword named "&eLighting Blade":
strike lightning effect at victim
damage victim by 10 hearts
create a fake explosion at the victim
ignite the victim
console command "msg %attacker% &fKamu memukul &c%victim%"
 
Hey, try this:
Code:
on damage:
    if tool of attacker is diamond sword:
        if name of tool of attacker is "&eLighting Blade":
            strike lighting at the victim
            damage victim by 10 hearts
            create a fake explosion at victim
            ignite the victim
            execute console command "msg %attacker% &fKamu memukul &c%victim%"