Spawned Mobs Do No Damage? Help/fix?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GlacialDew

Member
Apr 8, 2018
40
3
8
Norrland
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
 
code_language.skript:
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
            set target of spawned spider to player
            push the player backwards
 
Status
Not open for further replies.