tag @e[tag=boss,tag=!ngboss] add removeboss
execute as @e[tag=removeboss] run function survivalplus:mobs/vanish

execute at @e[tag=ng+portal] run summon zombie ~10 ~1 ~10 {Team:boss,IsBaby:0b,CustomName:{"text":"The Gravedigger"},Health:35,PersistenceRequired:1b,Tags:[gravedigger,rare,boss,plussed,nopoly,nobossxp,bosssummon],equipment:{mainhand:{id:diamond_shovel},feet:{id:leather_boots,components:{enchantments:{blast_protection:2,soul_speed:1}}},legs:{id:chainmail_leggings,components:{trim:{pattern:tide,material:iron},enchantments:{projectile_protection:2,thorns:1}}},chest:{id:leather_chestplate,components:{trim:{pattern:vex,material:copper},enchantments:{protection:2,projectile_protection:2}}},head:{id:leather_helmet,components:{trim:{pattern:sentry,material:copper},enchantments:{fire_protection:2}}}},drop_chances:{feet:0f,legs:0f,chest:0f,head:0f,mainhand:0f},attributes:[{id:armor,base:12f},{id:attack_damage,base:1f},{id:knockback_resistance,base:0.5f},{id:max_health,base:70f}],DeathLootTable:""}
execute at @e[tag=ng+portal] run summon husk ~-10 ~1 ~10 {Team:boss,IsBaby:0b,CanBreakDoors:1b,CustomName:{"text":"Iron Clad"},Health:40,PersistenceRequired:1b,Tags:[plussed,husk_king,boss,rare,nopoly,nobossxp,bosssummon],equipment:{mainhand:{id:iron_sword,components:{custom_data:{strengthsword:tag},item_name:{"text":"Iron Dune","italic":false},lore:[{"text":"Strength on kill","italic":false,"color":"light_purple"}],enchantments:{sweeping:1}}},offhand:{id:shield},feet:{id:iron_boots,components:{trim:{pattern:dune,material:gold},enchantments:{depth_strider:3,frost_walker:3}}},legs:{id:iron_leggings,components:{trim:{pattern:dune,material:gold},enchantments:{blast_protection:4,fire_protection:4}}},chest:{id:iron_chestplate,components:{trim:{pattern:shaper,material:gold},enchantments:{protection:3}}},head:{id:iron_helmet,components:{trim:{pattern:dune,material:quartz},enchantments:{projectile_protection:4}}}},drop_chances:{mainhand:0f,offhand:0f,feet:0f,legs:0f,chest:0f,head:0f},attributes:[{id:movement_speed,base:0.25f},{id:max_health,base:80f},{id:attack_damage,base:1f},{id:armor,base:4f},{id:knockback_resistance,base:1f}],DeathLootTable:""}
execute at @e[tag=ng+portal] run summon stray ~-10 ~1 ~-10 {Team:boss,CustomName:{"text":"Ice Lich"},Health:40,PersistenceRequired:1b,Tags:[ice_king,boss,plussed,rare,nopoly,nobossxp,bosssummon],equipment:{mainhand:{id:diamond_axe,components:{custom_data:{icehammer:tag},item_name:{"text":"Ice Hammer","italic":false,"color":"aqua"},lore:[{"text":"Apply on Hit:","italic":false,"color":"light_purple"},{"text":"Slowed temporarily","italic":false,"color":"gray"}]}},feet:{id:diamond_boots,components:{trim:{pattern:host,material:diamond}}},legs:{id:diamond_leggings,components:{trim:{pattern:raiser,material:diamond}}},chest:{id:diamond_chestplate,components:{trim:{pattern:raiser,material:quartz},enchantments:{projectile_protection:15}}},head:{id:golden_helmet,components:{trim:{pattern:spire,material:gold}}}},drop_chances:{mainhand:0f,feet:0f,legs:0f,chest:0f,head:0f},attributes:[{id:knockback_resistance,base:0.8f},{id:attack_damage,base:1f},{id:movement_speed,base:0.24f},{id:max_health,base:80f}],DeathLootTable:""}
execute at @e[tag=ng+portal] run summon wither_skeleton ~10 ~1 ~-10 {Team:boss,CanPickUpLoot:0b,CustomName:{"text":"Undead King"},Health:40,PersistenceRequired:1b,Tags:[undead_king,boss,plussed,rare,nopoly,nobossxp,bosssummon],equipment:{mainhand:{id:netherite_sword,components:{custom_data:{beheader:tag},item_name:{"text":"Scorched Blade","italic":false},lore:[{"text":"25% chance to decapitate a Wither Skeleton","italic":false,"color":"light_purple"}],enchantments:{fire_aspect:2,smite:5}}},feet:{id:netherite_boots,components:{trim:{pattern:rib,material:netherite},enchantments:{soul_speed:4}}},legs:{id:netherite_leggings,components:{trim:{pattern:rib,material:netherite},enchantments:{projectile_protection:3}}},chest:{id:netherite_chestplate,components:{trim:{pattern:silence,material:netherite},enchantments:{protection:2}}},head:{id:netherite_helmet,components:{trim:{pattern:rib,material:netherite},enchantments:{thorns:4}}}},drop_chances:{mainhand:0f,feet:0f,legs:0f,chest:0f,head:0f},attributes:[{id:max_health,base:80f},{id:knockback_resistance,base:0.8f},{id:attack_damage,base:-1f},{id:armor,base:-4f}],DeathLootTable:""}
execute as @e[tag=boss,tag=!ngboss] run function survivalplus:tools/tomes/stunboss