
# -> Set value
scoreboard players set @s OverlyRealistic.PredicateValue.IsRiding_AnimalHasStamina 1

# -> If ridden entity has no stamina data then give it to them
execute on vehicle \
    unless score @s OverlyRealistic.Animal.RidingStaminaMax matches 0.. run \
        function overly_realistic:players/predicate_operations/riding_entity/events/apply_new_stamina_data
