title @p[tag=sunp] actionbar "BURN TO ASH!!"
playsound minecraft:item.firecharge.use master @p[tag=sunp] ~ ~ ~ 20 2 1
execute as @e[tag=sun] run function template:the_sun/animations/burst/play
execute at @e[tag=sun] run summon fireball ~ ~3 ~-2 {Motion:[0.0,-3.0,-1.5],power:[0.0,-1.0,-1.5]}
execute at @e[tag=sun] run summon fireball ~ ~3 ~2 {Motion:[0.0,-3.0,1.5],power:[0.0,-1.0,1.5]}
execute at @e[tag=sun] run summon fireball ~3 ~3 ~ {Motion:[1.5,-3.0,0.0],power:[1.5,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~3 ~3 ~ {Motion:[-1.5,-3.0,0.0],power:[-1.5,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~3 ~3 ~2 {Motion:[-1.5,-3.0,1.5],power:[-1.5,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~3 ~3 ~-2 {Motion:[1.5,-3.0,-1.5],power:[-1.5,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~-2 ~3 ~3 {Motion:[0.0,-3.0,1.5],power:[-1.5,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~1 ~3 ~ {Motion:[0.0,-3.0,1.0],power:[0.0,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~-1 ~3 ~ {Motion:[0.0,-3.0,-1.0],power:[0.0,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~ ~3 ~1 {Motion:[1.0,-3.0,0.0],power:[0.0,-1.0,0.0]}
execute at @e[tag=sun] run summon fireball ~ ~3 ~-1 {Motion:[-1.0,-3.0,0.0],power:[0.0,-1.0,0.0]}
effect give @p[tag=sunp] slowness 5 1 true
advancement revoke @s only template:use_sun
schedule function template:the_sun/give_stand_back 5t