scoreboard players add @s KyuDummy 0

##check the base to make sure it's solid ground
#execute unless block ~ ~-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 ~ #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 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
######THE BELOW COMMAND IS JUST THE ABOVE COMMENTED COMMANDS STACKED ONTO ONE COMMAND FOR EFFICIENCY
execute at @s run execute unless block ~ ~-1 ~ #suhc:bloodboltpassthrough run execute unless block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run execute unless block ~-1 ~-1 ~ #suhc:bloodboltpassthrough run execute unless block ~-1 ~-1 ~-1 #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 scoreboard players add @s KyuDummy 1


execute as @s[scores={KyuDummy=1..}] run execute at @s run function zzzzdonotuse:structures/skeletonoutpost/skeletonoutposttreecheck



##check for air on the stilts
#execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute if block ~-1 ~ ~-6 #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 positioned ~ ~ ~ run execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run execute if block ~-1 ~ ~-6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=2..}] run execute positioned ~ ~1 ~ run execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run execute if block ~-1 ~ ~-6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=3..}] run execute positioned ~ ~2 ~ run execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run execute if block ~-1 ~ ~-6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=4..}] run execute positioned ~ ~3 ~ run execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run execute if block ~-1 ~ ~-6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=5..}] run execute positioned ~ ~4 ~ run execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run execute if block ~-1 ~ ~-6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1




#execute if block ~-6 ~ ~-2 #suhc:bloodboltpassthrough run execute if block ~-4 ~ ~5 #suhc:bloodboltpassthrough run execute if block ~1 ~ ~7 #suhc:bloodboltpassthrough run execute if block ~8 ~ ~8 #suhc:bloodboltpassthrough run execute if block ~11 ~ ~4 #suhc:bloodboltpassthrough run execute if block ~10 ~ ~-5 #suhc:bloodboltpassthrough run execute if block ~5 ~ ~-4 #suhc:bloodboltpassthrough run execute if block ~-1 ~ ~-6 #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#tree check
#execute unless block ~ ~-1 ~ #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~ #leaves execute if block ~ ~-1 ~ dark_oak_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~ #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~ #leaves execute if block ~ ~-1 ~ jungle_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-1 #leaves execute if block ~ ~-1 ~-1 dark_oak_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~ ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~ ~-1 ~-1 #leaves execute if block ~ ~-1 ~-1 jungle_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~ #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~ #leaves execute if block ~-1 ~-1 ~ dark_oak_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~ #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~ #leaves execute if block ~-1 ~-1 ~ jungle_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-1 #leaves execute if block ~-1 ~-1 ~-1 dark_oak_leaves run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~-1 #suhc:bloodboltpassthrough run execute if block ~-1 ~-1 ~-1 #leaves execute if block ~-1 ~-1 ~-1 jungle_leaves 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 ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
#execute unless block ~-1 ~-1 ~-1 #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}]