
# -> Add hydration
$scoreboard players remove @s OverlyRealistic.Player.Stats.Thirst $(thirst)

# -> Clamp
execute if score @s OverlyRealistic.Player.Stats.Thirst matches ..-1 run \
    scoreboard players set @s OverlyRealistic.Player.Stats.Thirst 0

# function overly_realistic:players/thirst/remove_hydration_from_generic {thirst:1i}