
# -> Drop items
execute align xyz \
    positioned ~0.5 ~0.5 ~0.5 \
    as @n[type=block_display,tag=OverlyRealistic.Block.PreparationPlate,distance=..0.5] \
    on passengers \
    if entity @s[type=item_display] run \
        function overly_realistic:general/custom_blocks/preparation_plate/preparation_plate_drop_items

# -> Sound
playsound block.leaf_litter.step block @a ~ ~ ~ 0.5 1

# -> Remove data
data remove entity @s data.PlateItems
scoreboard players reset @s OverlyRealistic.World.BlockItemAmount
