scoreboard players add @s KyuDummy 0

##check in front of the stairs/entrance to make sure it's solid ground
#execute unless block ~-2 ~-1 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-2 ~-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 #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 ~2 ~-1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~3 ~-1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~3 ~-1 ~ #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 ~-2 ~-1 ~ #suhc:bloodboltpassthrough run execute unless block ~-2 ~-1 ~-1 #suhc:bloodboltpassthrough 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 ~2 ~-1 ~-1 #suhc:bloodboltpassthrough run execute unless block ~3 ~-1 ~-1 #suhc:bloodboltpassthrough run execute unless block ~3 ~-1 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1







#misc blocks checks
#execute unless block ~1 ~-1 ~8 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~18 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~6 ~-1 ~15 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#ORRR
#execute if block ~1 ~-1 ~8 water run scoreboard players add @s KyuDummy 1
#execute if block ~ ~-1 ~18 water run scoreboard players add @s KyuDummy 1
#execute if block ~6 ~-1 ~15 water run scoreboard players add @s KyuDummy 1
######THE BELOW FUNCTION IS JUST THE ABOVE COMMENTED COMMANDS FOR EFFICIENCY
execute at @s[scores={KyuDummy=1..}] run function zzzzdonotuse:structures/bunker/bunkerblockcheckwater




##check for air above the entrance
#execute if block ~ ~1 ~3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~1 ~3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~ ~2 ~3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~2 ~3 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#
#execute if block ~ ~1 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~1 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~ ~2 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~2 ~2 #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=4..}] run execute if block ~ ~1 ~3 #suhc:bloodboltpassthrough run execute if block ~1 ~1 ~3 #suhc:bloodboltpassthrough run execute if block ~ ~2 ~3 #suhc:bloodboltpassthrough run execute if block ~1 ~2 ~3 #suhc:bloodboltpassthrough run execute if block ~ ~1 ~2 #suhc:bloodboltpassthrough run execute if block ~1 ~1 ~2 #suhc:bloodboltpassthrough run execute if block ~ ~2 ~2 #suhc:bloodboltpassthrough run execute if block ~1 ~2 ~2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1



##ALSO checks for air above the entrance, segmented into 2 parts for performance
#execute if block ~ ~1 ~1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~1 ~1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~ ~2 ~1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~2 ~1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#
#execute if block ~ ~1 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~1 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~ ~2 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~2 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#
#execute if block ~ ~ ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~ ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~ ~1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~1 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~ ~2 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~2 ~-1 #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 if block ~ ~1 ~1 #suhc:bloodboltpassthrough run execute if block ~1 ~1 ~1 #suhc:bloodboltpassthrough run execute if block ~ ~2 ~1 #suhc:bloodboltpassthrough run execute if block ~1 ~2 ~1 #suhc:bloodboltpassthrough run execute if block ~ ~1 ~ #suhc:bloodboltpassthrough run execute if block ~1 ~1 ~ #suhc:bloodboltpassthrough run execute if block ~ ~2 ~ #suhc:bloodboltpassthrough run execute if block ~1 ~2 ~ #suhc:bloodboltpassthrough run execute if block ~ ~ ~-1 #suhc:bloodboltpassthrough run execute if block ~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 ~ ~2 ~-1 #suhc:bloodboltpassthrough run execute if block ~1 ~2 ~-1 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1




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