kill @e[type=experience_orb,limit=1,sort=nearest]

execute as @s run loot spawn ~ ~ ~ loot survivalplus:rng/3
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{1:tag}}}}] run playsound minecraft:entity.experience_orb.pickup player @a ~ ~ ~ .5 .8
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{2:tag}}}}] run playsound minecraft:entity.experience_orb.pickup player @a ~ ~ ~ .5 1
execute if entity @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{3:tag}}}}] run playsound minecraft:entity.experience_orb.pickup player @a ~ ~ ~ .5 1.2
kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{del:tag}}}}]