title @p[tag=sunp] actionbar "BURN!!!"
playsound minecraft:block.fire.ambient master @p[tag=sunp] ~ ~ ~ 20 2 1
execute at @p[tag=sunp] as @e[distance=..20] run effect give @e[tag=!sunp,distance=..20] wither 1 1 true
execute at @p[tag=sunp] as @e[distance=..50] run effect give @e[tag=!sunp,distance=..50] hunger 1 0 true 
execute at @p[tag=sunp] run data merge entity @e[limit=1,tag=!sunp,distance=..50,sort=random] {Fire:300}
execute as @e[tag=sun] run function template:the_sun/animations/sun_spin/play
execute at @e[tag=sunp] run particle minecraft:flame ~ ~ ~ 10 10 10 10 15 normal
effect give @p[tag=sunp] weakness 5 5 true
effect give @p[tag=sunp] slowness 1 1 true
effect give @p[tag=sunp] mining_fatigue 5 5 true
schedule function template:the_sun/settle 10t