
# -> If setting is enabled then return
execute if score #or.setting.should_aggro_animals_spawn OverlyRealistic.Settings.ArbitrarySetting matches 1 run \
    return fail

# -> Remove aggro animals
execute as @e\
    [\
        tag=OverlyRealistic.CommonAnimalAggressive,\
        type=#overly_realistic:common_animals,\
        x=0,\
    ] \
    at @s run \
        function overly_realistic:main/settings/setting_additionals/setting_1/remove_animal

# -> Loop
schedule function overly_realistic:main/settings/setting_additionals/setting_1/no_predator_animal_spawns_loop 19t
