
# -> Function tag
function #overly_realistic:mechanics/mob_generic_animal_operate

# -> If entity isnt tagged then tag it and operate
execute if entity @s[tag=!OverlyRealistic.CommonAnimalChecked] run \
    function overly_realistic:animals/common_animal_tag

# -> If entity is aggressive then return and operate accordingly
execute if entity @s[tag=OverlyRealistic.CommonAnimalAggressive] run \
    function overly_realistic:animals/aggressive_animal_operate
