
# -> If there are no items then return
execute unless score @s OverlyRealistic.World.BlockItemAmount matches 1.. run \
    return fail

# -> Remove items
execute as @n[type=block_display,tag=OverlyRealistic.Block.PreparationPlate,distance=..0.5] \
    on passengers \
    if entity @s[type=item_display] run \
        kill @s

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