tag @s add DoBreak
scoreboard players add @s KyuDummy 1

execute if block ~ ~ ~ bedrock run tag @s remove DoBreak

execute as @s[tag=DoBreak] run fill ~ ~ ~ ~ ~ ~ air destroy


#die if it hits a forbidden block
kill @s[type=marker,tag=!DoBreak]

#move depending on tag
execute as @s[tag=StripMinePX] run execute at @s run tp @s ~1 ~ ~
execute as @s[tag=StripMineMX] run execute at @s run tp @s ~-1 ~ ~
execute as @s[tag=StripMinePZ] run execute at @s run tp @s ~ ~ ~1
execute as @s[tag=StripMineMZ] run execute at @s run tp @s ~ ~ ~-1


#repeat 30 times
execute as @s[scores={KyuDummy=..30}] run execute at @s run function zzzzdonotuse:specialitems/stripmine/stripmineexplodecheck
