execute as @e[type=minecraft:arrow,nbt={weapon:{components:{"minecraft:enchantments":{levels:{"kiwi:railgun":1}}}}},nbt={inGround:1b}] if entity @e[type=minecraft:arrow,nbt={weapon:{components:{"minecraft:enchantments":{levels:{"kiwi:railgun":1}}}}},nbt={inGround:1b}] run summon tnt ~ ~ ~ {explosion_power:25}
execute as @e[type=minecraft:arrow,nbt={weapon:{components:{"minecraft:enchantments":{levels:{"kiwi:railgun":1}}}}},nbt={inGround:1b}] if entity @e[type=minecraft:arrow,nbt={weapon:{components:{"minecraft:enchantments":{levels:{"kiwi:railgun":1}}}}},nbt={inGround:1b}] run kill @s