scoreboard players set @e[name=DayQ,tag=!LanternEventDay] NightQ 1
tag @e[name=DayQ,tag=!LanternEventDay] add EternalNightKyu
execute at @e[name=DayQ,tag=!LanternEventDay] if block ~-4 ~1 ~2 daylight_detector[power=0] run scoreboard players set @e[name=DayQ] NightQ 0

execute if entity @e[name=DayQ,tag=!LanternEventDay,scores={NightQ=1}] run tellraw @a[team=P] ["",{"text":"The sun starts to fade away...","color":"dark_aqua","italic":true}]
execute if entity @e[name=DayQ,tag=!LanternEventDay,scores={NightQ=1}] run data merge block 999982 122 999979 {auto:1b}