scoreboard players add @s KyuDummy 0

##check the entrance for solid ground and air above it
#execute unless block ~1 ~-1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~1 ~-1 ~-2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~-2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~-2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~1 ~-1 ~-3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~-3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~-3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
######THE BELOW COMMAND IS JUST THE ABOVE COMMENTED COMMANDS STACKED ONTO ONE COMMAND FOR EFFICIENCY
execute at @s run execute unless block ~1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute unless block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run execute unless block ~-1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute unless block ~1 ~-1 ~-2 #suhc:bloodboltpassthrough run execute unless block ~ ~-1 ~-2 #suhc:bloodboltpassthrough run execute unless block ~-1 ~-1 ~-2 #suhc:bloodboltpassthrough run execute unless block ~1 ~-1 ~-3 #suhc:bloodboltpassthrough run execute unless block ~ ~-1 ~-3 #suhc:bloodboltpassthrough run execute unless block ~-1 ~-1 ~-3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1

####these 2 commands are the same as above, but they run 1 and 2 blocks above, and check for air instead of solid ground
execute at @s[scores={KyuDummy=1..}] positioned ~ ~1 ~ run execute if block ~1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~1 ~-1 ~-2 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-2 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-2 #suhc:bloodboltpassthrough run execute if block ~1 ~-1 ~-3 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-3 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=2..}] positioned ~ ~2 ~ run execute if block ~1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~1 ~-1 ~-2 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-2 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-2 #suhc:bloodboltpassthrough run execute if block ~1 ~-1 ~-3 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-3 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1










#check at certain points underneath the structure for solid blocks
#execute unless block ~ ~-2 ~6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-6 ~-2 ~8  #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-6 ~-2 ~14 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-12 ~-2 ~15 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~6 ~-2 ~15 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~10 ~-2 ~15 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-2 ~20 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-2 ~28 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
######THE BELOW COMMAND IS JUST THE ABOVE COMMENTED COMMANDS STACKED ONTO ONE COMMAND FOR EFFICIENCY
execute at @s[scores={KyuDummy=3..}] run execute unless block ~ ~-2 ~6 #suhc:bloodboltpassthrough run execute unless block ~-6 ~-2 ~8 #suhc:bloodboltpassthrough run execute unless block ~-6 ~-2 ~14 #suhc:bloodboltpassthrough run execute unless block ~-12 ~-2 ~15 #suhc:bloodboltpassthrough run execute unless block ~6 ~-2 ~15 #suhc:bloodboltpassthrough run execute unless block ~10 ~-2 ~15 #suhc:bloodboltpassthrough run execute unless block ~ ~-2 ~20 #suhc:bloodboltpassthrough run execute unless block ~ ~-2 ~24 #suhc:bloodboltpassthrough run execute unless block ~ ~-2 ~28 #suhc:bloodboltpassthrough run execute unless block ~10 ~-2 ~24 #suhc:bloodboltpassthrough run execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=4..}] positioned ~ ~6 ~ run execute if block ~ ~-2 ~6 #suhc:bloodboltpassthrough run execute if block ~-6 ~-2 ~8 #suhc:bloodboltpassthrough run execute if block ~-6 ~-2 ~14 #suhc:bloodboltpassthrough run execute if block ~-12 ~-2 ~15 #suhc:bloodboltpassthrough run execute if block ~6 ~-2 ~15 #suhc:bloodboltpassthrough run execute if block ~10 ~-2 ~15 #suhc:bloodboltpassthrough run execute if block ~ ~-2 ~20 #suhc:bloodboltpassthrough run execute if block ~ ~-2 ~24 #suhc:bloodboltpassthrough run execute if block ~ ~-2 ~28 #suhc:bloodboltpassthrough run execute if block ~10 ~-2 ~24 #suhc:bloodboltpassthrough run execute if block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1

##check at certain points again underneath the structure for solid blocks
#execute unless block ~-13 ~-2 ~21 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~13 ~-2 ~21 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-14 ~-2 ~18 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~14 ~-2 ~18 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-14 ~-2 ~12 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~14 ~-2 ~12 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-13 ~-2 ~9 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~13 ~-2 ~9 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~10 ~-2 ~6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
######THE BELOW COMMAND IS JUST THE ABOVE COMMENTED COMMANDS STACKED ONTO ONE COMMAND FOR EFFICIENCY
execute at @s[scores={KyuDummy=5..}] run execute unless block ~-13 ~-2 ~21 #suhc:bloodboltpassthrough run execute unless block ~13 ~-2 ~21 #suhc:bloodboltpassthrough run execute unless block ~-14 ~-2 ~18 #suhc:bloodboltpassthrough run execute unless block ~14 ~-2 ~18 #suhc:bloodboltpassthrough run execute unless block ~-14 ~-2 ~12 #suhc:bloodboltpassthrough run execute unless block ~14 ~-2 ~12 #suhc:bloodboltpassthrough run execute unless block ~-13 ~-2 ~9 #suhc:bloodboltpassthrough run execute unless block ~13 ~-2 ~9 #suhc:bloodboltpassthrough run execute unless block ~-10 ~-2 ~6 #suhc:bloodboltpassthrough run execute unless block ~10 ~-2 ~6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1






#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-10 ~-2 ~24 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1



##check for air above the entrance
#execute if block ~-4 ~ ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~2 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~3 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~4 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~5 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#
#execute if block ~-4 ~ ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~1 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~2 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~3 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~4 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~5 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#
######THE BELOW COMMANDS ARE JUST THE ABOVE COMMENTED COMMANDS STACKED ONTO ONE COMMAND FOR EFFICIENCY
#execute at @s[scores={KyuDummy=1..}] run execute if block ~-4 ~ ~-1 #suhc:bloodboltpassthrough run execute if block ~-4 ~1 ~-1 #suhc:bloodboltpassthrough run execute if block ~-4 ~2 ~-1 #suhc:bloodboltpassthrough run execute if block ~-4 ~3 ~-1 #suhc:bloodboltpassthrough run execute if block ~-4 ~4 ~-1 #suhc:bloodboltpassthrough run execute if block ~-4 ~5 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute at @s[scores={KyuDummy=2..}] run execute if block ~-4 ~ ~2 #suhc:bloodboltpassthrough run execute if block ~-4 ~1 ~2 #suhc:bloodboltpassthrough run execute if block ~-4 ~2 ~2 #suhc:bloodboltpassthrough run execute if block ~-4 ~3 ~2 #suhc:bloodboltpassthrough run execute if block ~-4 ~4 ~2 #suhc:bloodboltpassthrough run execute if block ~-4 ~5 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1








#if any one block check fails, kill the marker
kill @s[type=!player,scores={KyuDummy=..5}]