
# -> Get decreased thirst value
execute store result score #or.random_thirst OverlyRealistic.General.ArbitraryData run \
    random value 1..9

# -> Operate on players
execute as @a at @s run \
    function overly_realistic:general/sleeping/loops/sleep_loop_80t_operate

# -> If it is raining then do rain operations
execute if score #or.is_raining_thundering OverlyRealistic.General.ArbitraryData matches 1 \
    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
