
# -> Remove targeter entities that are not on animals
#kill @e[type=piglin_brute,tag=OverlyRealistic.TargeterEntity,predicate=!overly_realistic:global/entity_on_vehicle]

# -> Increase time and store time value
#execute store result score #or.WorldTime OverlyRealistic.General.ArbitraryData run \
    time add 1t
execute store result score #or.WorldTime OverlyRealistic.General.ArbitraryData run \
    time of minecraft:overworld query time

# -> If new day has passed the run event
execute if predicate overly_realistic:world/time/is_new_day run \
    function overly_realistic:general/day_night_cycle/new_day_passed

# -> Check if boats are falling/have fallen
execute as @e[type=#overly_realistic:boats] run \
    function overly_realistic:general/boats/boats_get_fall

# -> Loop
schedule function overly_realistic:general/main_loops/main_loop_3t 3t