I made this zapper skript, it works, but i want it so you cant strike players or villagers.
heres what i have now
on rightclick:
if player's tool is blaze rod named "&6Zapper":
strike lightning at the targeted entity
else:
if player's tool is blaze rod named "&6Zapper":
if entity is a villager:
cancel event
send "&cYou cant strike this entity" to player
else:
if player's tool is blaze rod named "&6Zapper":
if entity is player:
cancel event
send "&cYou cant strike this entity" to
It doesnt work no errors