execute as @n[tag=item_snatcher] at @s unless predicate survivalplus:airoffhand run summon item ~ ~ ~ {Item:{id:"minecraft:stick"},Tags:[snatcher_drop2],PickupDelay:50s}
execute as @n[tag=item_snatcher] run data merge entity @s {PersistenceRequired:1b}
execute as @e[tag=snatcher_drop2] run data modify entity @s Item set from entity @n[tag=item_snatcher] equipment.offhand
tag @e[tag=snatcher_drop2] remove snatcher_drop2
item replace entity @n[tag=item_snatcher] weapon.offhand from entity @s weapon.offhand
item replace entity @s weapon.offhand with air

execute as @n[tag=item_snatcher] run tag @s remove not_stole
advancement grant @s only survivalplus:adventure/yoink
advancement revoke @s only survivalplus:tools/gethit/yoinked2