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%"
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%"