
# -> Decrease stamina
scoreboard players remove #or.global OverlyRealistic.Player.Stats.Stamina 2

# -> Effect
effect give @s hunger 1 1 true

# -> If player is low on fats then decrease stamina further
execute if score @s OverlyRealistic.Player.Stats.Fats matches ..0 run \
    scoreboard players remove #or.global OverlyRealistic.Player.Stats.Stamina 2

# -> Altitude checks
execute if entity @s[y=150,dy=9999] run \
    scoreboard players remove @s OverlyRealistic.Player.Stats.Stamina 1
execute if entity @s[y=250,dy=9999] run \
    scoreboard players remove @s OverlyRealistic.Player.Stats.Stamina 1
