execute as @s store result score @s KyuTime run time query daytime
execute as @s[tag=!IsNightKyu] run execute if entity @s[scores={KyuTime=12450..18599}] run function zzzzdonotuse:daytimer/nightstuff

#activates day function
execute if entity @s[scores={KyuTime=2000..2400}] run tag @s remove IsDayKyu
execute as @s[tag=!IsDayKyu] run execute if entity @s[scores={KyuTime=5..2000}] run data merge block 999985 120 999977 {auto:1b}
execute as @s[tag=!IsDayKyu] run execute if entity @s[scores={KyuTime=22300..25000}] run data merge block 999985 120 999977 {auto:1b}
