
# -> Add to thirst
execute store result score #or.random_thirst_addition OverlyRealistic.General.ArbitraryData run \
    random value 20..35
function overly_realistic:players/thirst/add_hydration_from_generic_randomized

# -> Sound
playsound entity.generic.drink player @a ~ ~ ~ 0.5 1

# -> Advancement
advancement grant @s only overly_realistic:advancements/stone_age/quick_sip

# -> Replace water bucket
execute if items entity @s weapon.mainhand *[custom_data~{or_bucket_specific:"wooden_bucket",or_bucket_contents:"clean_water"}] run \
    return run \
        loot replace entity @s weapon.mainhand loot overly_realistic:items/wooden_bucket_empty
loot replace entity @s weapon.offhand loot overly_realistic:items/wooden_bucket_empty
