summon armor_stand ~1 ~ ~ {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~-1 ~ ~ {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~ ~ ~1 {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~ ~ ~-1 {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~1 ~ ~-1 {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~-1 ~ ~-1 {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~-1 ~ ~1 {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
summon armor_stand ~1 ~ ~1 {CustomName:"\"BTTNT2\"",Small:1,Marker:1b,Invisible:1b,Silent:1b,CustomNameVisible:0,NoGravity:1b}
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand] if block ~ ~ ~ diamond_block run scoreboard players add @s BTTNT2 1
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand] if block ~ ~ ~ diamond_block run scoreboard players add @s BTTNT 1
tp @s @e[distance=..5,sort=random,name=BTTNT2,type=armor_stand,limit=1]
execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand] if block ~ ~ ~ diamond_block run scoreboard players add @s BTTNT 1
execute as @s[scores={BTTNT=580..}] run execute in overworld run data merge block 999982 122 999975 {auto:0b}
execute as @s[scores={BTTNT=580..}] run kill @s

execute at @s[scores={BTTNT2=1..480}] positioned ~ 113 ~ run execute unless entity @a[gamemode=!spectator,distance=..10] run summon tnt ~ ~ ~
#execute at @s[scores={BTTNT2=101..480}] positioned ~ 113 ~ run summon tnt ~ ~ ~
execute at @s[scores={BTTNT2=1}] run tag @e[sort=random,name=METEORKYU,type=armor_stand,limit=1] add TNT
execute at @s[scores={BTTNT2=1}] run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=TNT] if block ~ ~ ~ emerald_block run tag @s add BTTNTXZ
execute at @s[scores={BTTNT2=1}] run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=TNT] if block ~ ~ ~ gold_block run tag @s add BTTNTXMZ
execute at @s[scores={BTTNT2=1}] run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=TNT] if block ~ ~ ~ iron_block run tag @s add BTTNTMXZ
execute at @s[scores={BTTNT2=1}] run execute at @e[sort=random,limit=1,name=METEORKYU,type=armor_stand,tag=TNT] if block ~ ~ ~ diamond_block run tag @s add BTTNTMXMZ
execute at @s[scores={BTTNT2=5}] run tag @e[type=armor_stand,name=METEORKYU] remove TNT
execute at @s[scores={BTTNT2=5}] run tag @s remove BTTNTXZ
execute at @s[scores={BTTNT2=5}] run tag @s remove BTTNTXMZ
execute at @s[scores={BTTNT2=5}] run tag @s remove BTTNTMXZ
execute at @s[scores={BTTNT2=5}] run tag @s remove BTTNTMXMZ
kill @e[type=armor_stand,name=BTTNT2]
execute at @s[tag=BTTNTXZ] run tp @s[tag=BTTNTXZ] ~.5 ~ ~.5
execute at @s[tag=BTTNTXMZ] run tp @s[tag=BTTNTXMZ] ~.5 ~ ~-.5
execute at @s[tag=BTTNTMXZ] run tp @s[tag=BTTNTMXZ] ~-.5 ~ ~.5
execute at @s[tag=BTTNTMXMZ] run tp @s[tag=BTTNTMXMZ] ~-.5 ~ ~-.5
execute at @s[scores={BTTNT2=5}] run scoreboard players set @s BTTNT2 0
kill @e[type=item,distance=..10]