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

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