execute at @p[tag=sunp] unless entity @e[tag=sun] run playsound minecraft:template6 master @p[tag=sunp] ~ ~ ~
execute at @p[tag=sunp] unless entity @e[type=marker,tag=sunpa] run summon marker ~ ~ ~ {Tags:["sunpa"]}
execute at @p rotated ~ 0 run tp @e[type=marker,tag=sunpa] ^-0.2 ^10 ^-0.7
execute at @e[type=marker,tag=sunpa] as @e[tag=sun] facing entity @p[tag=sunp] feet run tp @s ~ ~0.5 ~ ~ 0
execute at @p[tag=sunp] unless entity @e[tag=sun] run summon minecraft:text_display ^-1 ^2 ^ {Tags:["custom_font"],background:0,billboard:"center",text:'\uE000'}
execute at @p[tag=sunp] unless entity @e[tag=sun] run summon minecraft:text_display ^-0.6 ^1.8 ^ {Tags:["custom_font"],background:0,billboard:"center",text:'\uE000'}
execute as @e[tag=custom_font] at @s run tp @s ~ ~0.02 ~
schedule function template:kill_menacing 15t append
execute at @p[tag=sunp] unless entity @e[tag=sun] run function template:the_sun/summon {args:{}}
execute as @a[tag=sunp,predicate=template:is_sneaking] run function template:the_sun/heat_wave
schedule function template:the_sun/stand_display_end 10t