
# -> Drink sea water
function overly_realistic:players/foods/generic/drink_sea_water_from_hide_waterskin

# -> 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:"sea_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
