summon item ~ ~ ~ {Item:{id:stick},Tags:[dropapple]}
data modify entity @e[type=item,limit=1,sort=nearest,tag=dropapple] Item set from entity @s item
tag @e remove dropapple
item replace entity @s container.0 with air
playsound minecraft:block.beehive.exit block @a ~ ~ ~ 1 2
tag @s add dontadd