function survivalplus:finale/boss/killsummons
forceload remove all
execute at @e[tag=ng+portal] run setblock ~ ~8 ~ air destroy
execute at @e[tag=ng+portal] run setblock ~ ~22 ~ light_blue_stained_glass
schedule clear survivalplus:finale/boss/cycle
scoreboard players set newgame newgame 1
advancement grant @a only survivalplus:finale/killboss
tag @s remove fight
execute at @e[tag=ng+portal] run place template survivalplus:blackcastle/openportal ~-3 ~ ~-3
execute as @a at @s run playsound ui.toast.challenge_complete master @s ~ ~ ~ 1.2 .8
tellraw @a {"text": "The Guardian has been defeated!","color": "dark_red"}