tag @a remove PushedSelfDestruct
tag @p[gamemode=!spectator] add PushedSelfDestruct
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace warped_sign
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 air replace ancient_debris
#execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s positioned ~ ~2 ~-9 run fill ~ ~ ~ ~ ~1 ~1 air
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~-1 ~28 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-1 ~28 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-11 ~28 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-11 ~28 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-21 ~28 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-26 ~-28 ~28 ~-21 ~28 air replace command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~-1 ~28 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-1 ~28 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-11 ~28 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-11 ~28 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-21 ~28 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-26 ~-28 ~28 ~-21 ~28 air replace repeating_command_block
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~-1 ~28 air replace lava
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-1 ~28 air replace lava
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-11 ~28 air replace lava
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-11 ~28 air replace lava
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-21 ~28 air replace lava
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-26 ~-28 ~28 ~-21 ~28 air replace lava
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~16 ~-28 ~28 ~11 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~11 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~-1 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-1 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-11 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-11 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-21 ~28 tnt[unstable=true] replace bedrock
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-26 ~-28 ~28 ~-21 ~28 tnt[unstable=true] replace bedrock

execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~11 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~6 ~-28 ~28 ~-1 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-1 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-6 ~-28 ~28 ~-11 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-11 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-16 ~-28 ~28 ~-21 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-26 ~-28 ~28 ~-21 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-26 ~-28 ~28 ~-31 ~28 air replace water
execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run execute at @s run fill ~-28 ~-36 ~-28 ~28 ~-31 ~28 air replace water



execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon marker ~ ~ ~ {Tags:["KyuSelfDestruct"]}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~ ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~1 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~2 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~3 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~4 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~5 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~6 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~7 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~8 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~9 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~10 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~ ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~-1 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~-2 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~-3 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~-4 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run summon tnt ~ ~-5 ~ {NoGravity:1,Fuse:60}
execute at @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] positioned ~-2 ~4 ~ run kill @e[type=armor_stand,distance=..3]

execute in overworld run data merge block 999998 121 999981 {auto:1b}


#title @a[distance=..75] times 26 20 26
#title @a[distance=..75] title [{"text":"WARNING: ","color":"dark_red","underlined":false},{"text":"SELF-DESTRUCT SEQUENCE INITIATED","color":"red","underlined":false}]
#title @a[distance=..75] subtitle [{"text":"60 seconds until complete obliteration.","color":"red","underlined":false}]



execute as @e[type=marker,limit=1,sort=nearest,tag=KyuBigPyramid] run kill @s

setblock ~ ~ ~ air