clear @s tnt 1
execute in overworld run data merge block 999977 122 999971 {auto:1b}

execute at @s positioned ~ ~501.25 ~ run summon arrow ^ ^ ^1 {Motion:[0.0,0.0,0.0],Tags:["TNTArrow"]}
#execute as @e[type=arrow,tag=TNTArrow,tag=!GotMotion] run execute at @s positioned ~ ~-500 ~ run data modify entity @s Motion[0] set from entity @e[limit=1,type=arrow,sort=nearest] Motion[0]
execute as @e[type=arrow,tag=TNTArrow,tag=!GotMotion] run execute at @s positioned ~ ~-500 ~ run execute store result entity @s Motion[0] double .00005 run data get entity @e[limit=1,type=arrow,sort=nearest] Motion[0] 10000
execute as @e[type=arrow,tag=TNTArrow,tag=!GotMotion] run execute at @s positioned ~ ~-500 ~ run execute store result entity @s Motion[1] double .00005 run data get entity @e[limit=1,type=arrow,sort=nearest] Motion[1] 10000
execute as @e[type=arrow,tag=TNTArrow,tag=!GotMotion] run execute at @s positioned ~ ~-500 ~ run execute store result entity @s Motion[2] double .00005 run data get entity @e[limit=1,type=arrow,sort=nearest] Motion[2] 10000
kill @e[type=arrow,distance=..3]
execute at @s positioned ~ ~1.25 ~ run summon silverfish ^ ^ ^1 {Attributes:[{Name:generic.follow_range,Base:0}],Silent:1b,ActiveEffects:[{Id:11b,Amplifier:6b,Duration:111111111,ShowParticles:0b},{Id:14b,Amplifier:1b,Duration:111111111,ShowParticles:0b}],Small:1b,Passengers:[{id:"minecraft:tnt",Fuse:60}],Invulnerable:1b,Motion:[0.0,0.0,0.0],Tags:["tpme2","TNTArrowSt"]}
tag @e[type=arrow,tag=TNTArrow,tag=!GotMotion] add GotMotion
#summon armor_stand ~ ~1.25 ~ {Invulnerable:1b,Motion:[0.0,0.0,0.0],Tags:["tpme2","TNTArrowSt"],ActiveEffects:[{Id:28b,Amplifier:11b,Duration:11111111}]}
#execute at @s positioned ~ ~1 ~ run tp @e[type=silverfish,distance=..3] ^ ^1 ^5.3
