
# -> If there is water filled then return
execute if entity @s[tag=OverlyRealistic.Block.Basket_IsWaterLogged] run \
    return fail

# -> Set water type
scoreboard players set #or.basket_water_place_type OverlyRealistic.General.ArbitraryData 3

# -> Set water
summon minecraft:item_display ~ ~ ~ {Tags:["OverlyRealistic.Block.Basket_TempWater","OverlyRealistic.Block.Basket_IsWater"], transformation: {left_rotation: [0.0f, 0.0f, 0.0f, 1.0f], right_rotation: [0.0f, 0.0f, 0.0f, 1.0f], scale: [1.0f, 1.0f, 1.0f], translation: [0.0f, -0.756f, 0.0f]}}
execute align xyz run \
    ride @n[type=item_display,tag=OverlyRealistic.Block.Basket_TempWater,dx=0,dy=0,dz=0] mount @s
execute on passengers \
    if entity @s[tag=OverlyRealistic.Block.Basket_TempWater] run \
        function overly_realistic:general/custom_blocks/basket/interactions/int_place_water_edit_water
