
# -> Operate on players
execute as @a[gamemode=!spectator] at @s run \
    function overly_realistic:general/main_loops/main_loop_13t_operate

# --> Set time variables

# -> IsNightTime
scoreboard players set #or.WorldTime_IsNightTime OverlyRealistic.General.ArbitraryData 0
execute if predicate overly_realistic:world/time/is_night run \
    scoreboard players set #or.WorldTime_IsNightTime OverlyRealistic.General.ArbitraryData 1

# -> IsNoon
scoreboard players set #or.WorldTime_IsNoon OverlyRealistic.General.ArbitraryData 0
execute if predicate overly_realistic:world/time/is_noon run \
    scoreboard players set #or.WorldTime_IsNoon OverlyRealistic.General.ArbitraryData 1

# -> IsEarlyDay
scoreboard players set #or.WorldTime_IsEarlyDay OverlyRealistic.General.ArbitraryData 0
execute if predicate overly_realistic:world/time/is_early_day run \
    scoreboard players set #or.WorldTime_IsEarlyDay OverlyRealistic.General.ArbitraryData 1

# -> Function tag
function #overly_realistic:general_loops/main_13t

# -> Loop
schedule function overly_realistic:general/main_loops/main_loop_13t 13t
