
# -> If there are no items then return and attempt to remove additionals
execute unless score @s OverlyRealistic.World.BlockItemAmount matches 1.. run \
    return run \
        function overly_realistic:general/custom_blocks/basket/interactions/int_remove_additionals

# -> Drop items
execute on passengers \
    if entity @s[type=item_display,tag=OverlyRealistic.Block.Basket_BasketItem] run \
        function overly_realistic:general/custom_blocks/basket/basket_drop_items

# -> Reset data
scoreboard players reset @s OverlyRealistic.World.BlockItemAmount
data remove entity @s data.BasketItems[{}]
scoreboard players reset @s OverlyRealistic.World.BasketStirAmount
scoreboard players reset @s OverlyRealistic.World.BasketSweetBerryFermentationTime
