As the title says, I am trying to make it so that a fireball will deal 0 damage or hearts to players, but 15 hearts to other mobs. I have no addons installed and here is the code for the on damage event
:
Code:
on damage:
event-projectile is set:
event-projectile is a lightning:
attacker's tool is enchanted book named "&6&lFireball Spellbook":
victim is a player
cancel event
victim is not a player
damage the victim by 15 hearts