tag @e[type=arrow,nbt={life:0s},distance=...5] add burstarrow
scoreboard players add @e[nbt={life:0s},tag=burstarrow,distance=..1] burst 0
execute as @e[tag=burstarrow,scores={burst=0}] run data modify entity @s Motion set from entity @e[tag=burstarrow,scores={burst=1},limit=1,nbt={inGround:0b}] Motion
execute if entity @e[tag=burstarrow] run function survivalplus:tools/archer/burstarrow