Item Drop Detection
easy
Introduction
Sourced by the Bedrock Commands Community (BCC) Discord
This technique allows you to differentiate player dropped items from other dropped items.
Commands
BP/functions/wiki/detect_state/item/is_dropped_by.mcfunction
yaml
## Tag Items From Other
### Facing precisely 0° south
tag @e[type=item,ry=0,rym=0,tag=!wiki:source.player] add wiki:source.other
## Tag Items Dropped by Players
tag @e[type=item,tag=!wiki:source.other] add wiki:source.player
NOTE
Interestingly, even items dropped by players facing 0° south will correctly be tagged 'wiki:source.player'