clear @s tnt 1
execute unless score #KyuQStructuresInstall KyuDummy5 matches 1 run execute in overworld run data merge block 999977 122 999971 {auto:1b}
execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run execute in overworld run data merge block 999998 120 999980 {auto:1b}

execute at @s positioned ~ ~501.25 ~ run summon arrow ^ ^ ^1 {Motion:[0.0,0.0,0.0],Tags:["TNTArrow"],pickup:1b}
#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,active_effects:[{id:"minecraft:resistance",amplifier:6b,duration:111111111,show_particles:0b},{id:"minecraft:invisibility",amplifier:1b,duration:111111111,show_particles: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"],active_effects:[{id:"minecraft:slow_falling",amplifier:11b,duration:11111111}]}
#execute at @s positioned ~ ~1 ~ run tp @e[type=silverfish,distance=..3] ^ ^1 ^5.3
