
# -> Check for animal deaths
tag @e[type=#overly_realistic:general_animals_check_for_deaths,tag=!OverlyRealistic.Animal.CantEdit,x=0] add OverlyRealistic.Animal.AnimalIsAlive
execute as @e[tag=OverlyRealistic.Animal.AnimalHolderEntity,type=#overly_realistic:animal_holder_entities,x=0] \
    on vehicle \
    if entity @s[tag=!OverlyRealistic.Animal.AnimalIsAlive] \
    on passengers \
    at @s run \
        function overly_realistic:animals/operations/animal_death/animal_die_vehicle
tag @e[tag=OverlyRealistic.Animal.AnimalIsAlive,type=#overly_realistic:general_animals_check_for_deaths,x=0] remove OverlyRealistic.Animal.AnimalIsAlive

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

# -> Loop
schedule function overly_realistic:general/main_loops/main_loop_8t 8t