execute as @n[type=arrow,distance=...5,nbt={life:0s,inGround:0b}] run data merge entity @s {pickup:1b,crit:1b}
execute if score @s burst matches 1.. run scoreboard players remove @s burst 1
scoreboard players add @s timer 4
function survivalplus:tools/archer/limitammo/checkammo