Jump to content

My Server keeps crashing with the "internal error occurred" and i think its because of this script. any reason why?


Sepncer

Recommended Posts

on death:
  if victim is zombie:
    if victim's name is "&2&lTier 2 Boss":
      clear the drops
      hide bossbar "&2&lTier 2 Boss"
      chance of 100%:
        set {_Drop} to lime glazed terracotta named "&2&lTIER 2 SOUL"
        drop {_drop} at victim's location
        stop


on damage:
    if victim is zombie:
        if victim's name is "&2&lTier 2 Boss":
            set {_Value} to victim's health
            set bossbar "&2&lTier 2 Boss" progress to {_Value}

on rightclick with lime dye:
    name of player's tool is "&2&lTIER 2 BOSS SUMMON"
    remove 1 of player's held item from player
    wait 2 seconds
    create a safe explosion of force 3 at player
    spawn 1 of zombie at location of player
    set name of spawned entity to "&2&lTier 2 Boss"
    set last spawned entity's max health to 100
    set last spawned entity's health to 100
    equip last spawned entity with diamond helmet of protection 5, unbreaking 10
    equip last spawned entity with diamond chestplate of protection 5, unbreaking 10
    equip last spawned entity with diamond leggings of protection 5, unbreaking 10
    equip last spawned entity with diamond boots of protection 5, unbreaking 10
    set held item of last spawned entity to diamond sword of sharpness 8, unbreaking 10
    apply speed 5 to last spawned zombie for 100 minutes
    apply strength 8 to last spawned zombie for 100 minutes
    create bossbar titled "&2&lTier 2 Boss" and id "&2&lTier 2 Boss" for all players with progress 100 with colors green
    wait 8 seconds
    create a safe explosion of force 5 at player
    spawn 1 of husk at location of player
    set last spawned husk's max health to 75
    set last spawned husk's health to 75
    set display name of last spawned husk to "&2&lUndead Guard"
    apply speed 3 to last spawned husk for 100 minutes
    apply strength 8 to last spawned husk for 100 minutes
    wait 0.1 seconds
    spawn 1 of husk at location of player
    set last spawned husk's max health to 75
    set last spawned husk's health to 75
    set display name of last spawned husk to "&2&lUndead Guard"
    apply speed 3 to last spawned husk for 100 minutes
    apply strength 8 to last spawned husk for 100 minutes
    wait 0.1 seconds
    spawn 1 of husk at location of player
    set last spawned husk's max health to 75
    set last spawned husk's health to 75
    set display name of last spawned husk to "&2&lUndead Guard"
    apply speed 3 to last spawned husk for 100 minutes
    apply strength 8 to last spawned husk for 100 minutes
    wait 0.1 seconds
    spawn 1 of husk at location of player
    set last spawned husk's max health to 75
    set last spawned husk's health to 75
    set display name of last spawned husk to "&2&lUndead Guard"
    apply speed 3 to last spawned husk for 100 minutes
    apply strength 8 to last spawned husk for 100 minutes
    wait 0.1 seconds
    spawn 1 of husk at location of player
    set last spawned husk's max health to 75
    set last spawned husk's health to 75
    set display name of last spawned husk to "&2&lUndead Guard"
    apply strength 8 to last spawned husk for 100 minutes
    apply speed 3 to last spawned husk for 100 minutes
    wait 0.1 seconds
    stop
    
    


every 1 second:
    set bossbar "&2&lTier 2 Boss" progress to {_Value}
    
on death:
    if victim is husk:
    if victim's name is "&2&lUndead Guard":
        clear the drops

Link to comment
Share on other sites

Check the console of the server to see the cause of the crash

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...