
# -> Decrease thirst
execute store result score #or.random_thirst OverlyRealistic.General.ArbitraryData run \
    random value 1..9
scoreboard players operation @a OverlyRealistic.Player.Stats.Thirst -= #or.random_thirst OverlyRealistic.General.ArbitraryData

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

# -> If it is raining then do rain operations
execute if predicate overly_realistic:world/weather/is_raining_thundering \
    if predicate overly_realistic:world/weather/rain_operate_rng \
    at @p[sort=random] run \
        function overly_realistic:general/weather/randomized_weather_operate

# -> Reset time
scoreboard players set #or.world.sleep_time_3 OverlyRealistic.General.ArbitraryData 0
