
# -> Exhaust player
execute if score @s OverlyRealistic.Player.Stats.Stamina matches 0 \
    unless entity @s[tag=OverlyRealistic.Player.IsExhausted] run \
        function overly_realistic:players/stamina/player_exhaust

# -> Normalize player
execute if score @s OverlyRealistic.Player.Stats.Stamina matches 1.. \
    if entity @s[tag=OverlyRealistic.Player.IsExhausted] run \
        function overly_realistic:players/stamina/player_normalize