
# -> Tag entity
tag @s add OverlyRealistic.GenericMobSpawned

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

# -> If entity selected is spider then operate adequately
execute if entity @s[type=#overly_realistic:spiders] run \
    return run \
        function overly_realistic:animals/operations/spider_spawn

# -> If entity selected is bee then operate adequately
execute if entity @s[type=bee] run \
    function overly_realistic:animals/operations/bee_spawn

# -> If entity selected is bee then operate adequately
execute if entity @s[type=silverfish] run \
    function overly_realistic:animals/operations/silverfish_spawn
