
# -> Reset water type
scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 0

# -> Generic bucket (dirty water)
execute if items entity @s weapon.mainhand *[custom_data~{or_bucket_contents:"dirty_water"}] run \
    return run \
        scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 2

# -> Generic bucket (clean water)
execute if items entity @s weapon.mainhand *[custom_data~{or_bucket_contents:"clean_water"}] run \
    return run \
        scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 3

# -> Generic bucket (sea water)
execute if items entity @s weapon.mainhand *[custom_data~{or_bucket_contents:"sea_water"}] run \
    return run \
        scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 4

# -> Water bucket
execute if items entity @s weapon.mainhand *[custom_data~{IsWaterBucket:1b}] run \
    return run \
        scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 1

# -> (@NOTE: TEMPORARY, change in next update!)
# -> Water bottle (dirty water)
execute if items entity @s weapon.mainhand potion[custom_data~{IsDirtyWater:1b}] run \
    return run \
        scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 2

# -> Water bottle (clean water)
execute if items entity @s weapon.mainhand potion[custom_data~{IsCleanWater:1b}] run \
    return run \
        scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 3
