scoreboard players add @s KyuDummy 1
tag @s remove MoveDownQ
execute if block ~ ~ ~ air run tag @s add MoveDownQ
execute at @s[tag=MoveDownQ] run setblock ~ ~-1 ~ obsidian
execute at @s[tag=MoveDownQ,tag=WestStairs] run setblock ~ ~ ~ polished_blackstone_brick_stairs[facing=west]
execute at @s[tag=MoveDownQ,tag=NorthStairs] run setblock ~ ~ ~ polished_blackstone_brick_stairs[facing=north]
execute at @s[tag=MoveDownQ,tag=EastStairs] run setblock ~ ~ ~ polished_blackstone_brick_stairs[facing=east]
execute at @s[tag=MoveDownQ,tag=SouthStairs] run setblock ~ ~ ~ polished_blackstone_brick_stairs[facing=south]
execute at @s[tag=MoveDownQ] positioned ~ ~-1 ~ run fill ^ ^ ^ ^3 ^ ^ polished_blackstone_brick_wall replace air
execute at @s[tag=MoveDownQ] run tp @s ^ ^ ^1
execute at @s[tag=MoveDownQ] run tp @s ~ ~-1 ~

execute as @s[scores={KyuDummy=..7}] run execute at @s run function zzzzdonotuse:enderdragon/buildstairs