
summon item ~ ~ ~ {Item:{id:"minecraft:stone",count:1b},Tags:["sgrave.new_item"],Motion:[0f,0.2f,0f]}

data modify entity @n[type=item,tag=sgrave.new_item] Item set from entity @s data.Inventory[0]

data remove entity @s data.Inventory[0]

scoreboard players remove #items sgrave 1

tag @e[tag=sgrave.new_item] remove sgrave.new_item

execute if score #items sgrave matches 1.. run function snapgrave:response/retrieve/inventory
