execute at @s run loot spawn ~ ~ ~ loot survivalplus:rng/2
execute at @s if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{1:tag}}}}] run summon experience_orb ~ ~ ~ {Value:5,Tags:[copymot]}
execute at @s if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{2:tag}}}}] run summon experience_orb ~ ~ ~ {Value:10,Tags:[copymot]}
#execute as @e[type=item,nbt={Item:{components:{"minecraft:custom_data"{xporb:tag}}}}] run function survivalplus:tools/archer/arrow/speedup
#execute as @e[tag=copymot] run data modify entity @s Motion set from entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data"{xporb:tag}}}},limit=1,sort=nearest] Motion
kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{del:tag}}}}]
tag @e remove copymot
kill @s