So I coded a few custom bosses but they dont actually do any damage. Is there a fix or way to make them cause damage like a collide event?
code_language.skript:
#-----[Spider Queen]
on rightclick:
if event-block is not air:
if player is holding a enchanted book with name "&8&lSpider Queen Summoner" with lore "||&7Summons A Spooky &2&nSpider Queen":
send "&7[&6&lAA&7]&7 The &2&lSpider Queen Boss &7Has Been Summoned!"
spawn 1 spider 1 above event-block
set the name of the last spawned spider to "&2&lSpider Queen"
apply resistance 2 to the last spawned spider for 9999 minutes
push the player backwards