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