execute at @s run loot spawn ~ ~ ~ loot survivalplus:rng/2
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{1:tag}}}}] run tp @s ~ ~ ~ ~3 ~
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{2:tag}}}}] run tp @s ~ ~ ~ ~-3 ~
kill @e[type=item,nbt={Item:{components:{custom_data:{del:tag}}}}]