
# -> Decrease thirst
scoreboard players operation @s[gamemode=!creative,gamemode=!spectator] OverlyRealistic.Player.Stats.Thirst -= #or.random_thirst OverlyRealistic.General.ArbitraryData

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

# -> If player is not sleeping dynamically then return
execute unless entity @s[tag=OverlyRealistic.Player.IsSleeping_Dynamic] run \
    return fail

# -> If player is not above a soft block, then add debuffs
execute if block ~ ~-0.5 ~ #wool run \
    return fail
effect give @s mining_fatigue 60 0 true
effect give @s slowness 60 0 true
