
# -> Tag entity
tag @s add OverlyRealistic.SecondaryAnimalChecked
tag @s add OverlyRealistic.Animal.IsAnimal

# -> Add holder
function overly_realistic:animals/operations/add_marker_to_passive_animal

# -> Set as tamed
data modify entity @s Tame set value 1b

# -> Apply vars
execute store result score @s OverlyRealistic.Animal.Stamina run \
    random value 100..900

# -> On RNG, make tame
execute if predicate overly_realistic:animal/secondary_animal_tame_rng run \
    tag @s add OverlyRealistic.Animal.ShouldNotFlee
