
# -> Breathe in
execute if entity @s[tag=!OverlyRealistic.Player.BreatheIn,tag=!OverlyRealistic.Player.IsInWater] run \
    return run \
        function overly_realistic:players/stamina/breathe/breathe_in

# --> Breathe out

# -> If player is in water then return
execute if entity @s[tag=OverlyRealistic.Player.IsInWater] run \
    return fail

# -> Untag player
tag @s remove OverlyRealistic.Player.BreatheIn

# -> Sound
#playsound entity.player.breath player @a ~ ~ ~ 0.5 0.89
playsound overlyrealistic:player.breathing.breathe_out player @a ~ ~ ~ 0.2 1
#playsound overlyrealistic:test player @a ~ ~ ~ 1 0.9
