correct way to detect dropped items?

execute at @e[tag=event_center,limit=1] as @e[type=item,distance=..10,nbt={Item:{id:"minecraft:cherry_log"}}] run function event:collect_log
Continue to help post