
# -> If there is water filled then return
execute unless block ~ ~ ~ barrier[waterlogged=false] run \
    return fail

# -> Set water
setblock ~ ~ ~ barrier[waterlogged=true]

# -> Sound
playsound item.bucket.empty block @a ~ ~ ~ 0.45 1

# -> Operate on player
execute as @p[tag=OverlyRealistic.Player.TempPlayer] run \
    function overly_realistic:general/custom_blocks/basket/interactions/int_place_water_local
