execute as @n[type=item,nbt={Item:{id:"minecraft:arrow"}}] run tag @s add limampickup
execute as @e[tag=limampickup] store result score @s burst run data get entity @s Item.count
scoreboard players operation @s burst += @e[tag=limampickup] burst
execute at @e[tag=limampickup] run playsound entity.item.pickup hostile @a ~ ~ ~ .3 1.5
kill @e[tag=limampickup]
function survivalplus:tools/archer/limitammo/checkammo