
# -> If not water then return
execute unless block ~ ~ ~ water run \
    return fail

# -> Remove water
setblock ~ ~ ~ air

# -> Get dirty water
execute if items entity @s weapon.mainhand potion[potion_contents={potion:"water"}] run \
    return run \
        loot replace entity @s weapon.mainhand loot overly_realistic:items/dirty_water

loot replace entity @s weapon.offhand loot overly_realistic:items/dirty_water
