scoreboard players reset newgame burst
tag @e[tag=ng+portal] remove ngboss
tag @e[tag=ng+portal] add fight
bossbar set ngboss value 200
#execute at @e[tag=ng+portal] run playsound minecraft:music_disc.pigstep music @a ~ ~4.5 ~ 2
execute at @e[tag=ng+portal] run forceload add ~ ~
execute at @e[tag=ng+portal] run summon skeleton ~ ~3 ~ {Team:boss,PersistenceRequired:1b,CanPickUpLoot:0b,Health:200,Tags:[ngboss,boss,special,plussed,rare,nopoly,nobossxp,neutralph],CustomName:{"text":"Guardian of The Gate"},equipment:{mainhand:{id:netherite_sword},feet:{id:netherite_boots,components:{trim:{pattern:silence,material:netherite}}},legs:{id:netherite_leggings,components:{trim:{pattern:silence,material:netherite}}},chest:{id:netherite_chestplate,components:{trim:{pattern:raiser,material:netherite}}},head:{id:netherite_helmet,components:{trim:{pattern:silence,material:netherite}}}},attributes:[{id:follow_range,base:50f},{id:attack_damage,base:1f},{id:attack_knockback,base:1f},{id:movement_speed,base:0.27f},{id:knockback_resistance,base:0.5f},{id:max_health,base:200f}],drop_chances:{mainhand:0f,offhand:2f,feet:0f,legs:0f,chest:0f,head:0f},DeathLootTable:""}
execute at @e[tag=ng+portal] run particle flash ~ ~4.5 ~ 0 0 0 0 1 force
execute at @e[tag=ng+portal] run particle cloud ~ ~4.5 ~ 0 0 0 .5 50 force
execute at @e[tag=ng+portal] run particle firework ~ ~4.5 ~ 0 0 0 .5 50 force
execute at @e[tag=ng+portal] run particle minecraft:reverse_portal ~ ~4.5 ~ 0 0 0 10 100 force
execute at @e[tag=ng+portal] run playsound minecraft:item.trident.thunder player @a ~ ~4.5 ~ 1 .8
execute at @e[tag=ng+portal] run playsound minecraft:block.end_portal.spawn hostile @a ~ ~4.5 ~ 1 .8
execute at @e[tag=ng+portal] as @a[distance=..50] at @s run function survivalplus:finale/boss/spawnpoint
schedule function survivalplus:finale/boss/cycle 6s replace