#execute at @n[type=item,nbt={Item:{components:{"minecraft:custom_data":{boom:tag}}}}] run summon tnt ~ ~ ~ {Tags:[boomcheck]}
#execute as @e[type=tnt,predicate=survivalplus:adventuremode] at @s run function survivalplus:tools/archer/arrow/noboom
execute at @n[type=item,nbt={Item:{components:{"minecraft:custom_data":{boom:tag}}}}] run execute as @e[type=item,distance=..5] run data merge entity @s {Invulnerable:1b,Motion:[0d,.5d,0d]}
execute at @n[type=item,nbt={Item:{components:{"minecraft:custom_data":{boom:tag}}}}] run execute as @e[type=item,distance=..5] run tag @s add itemguard
execute at @n[type=item,nbt={Item:{components:{"minecraft:custom_data":{boom:tag}}}}] run function survivalplus:tools/archer/arrow/noboom
execute as @n[type=item,nbt={Item:{components:{"minecraft:custom_data":{boom:tag}}}}] at @s run kill @s