scoreboard players add @s KyuDummy 0


#checks the entrance blocks near the wooden sign(with the structure's name on it), to make sure the ground blocks are SOLID blocks and the 2 blocks directly above each of those are NON-SOLID(air, flowers, water, etc)
execute positioned ~ 66 ~ run execute unless block ~ ~ ~ #suhc:bloodboltpassthrough run execute unless block ~ ~ ~ #minecraft:leaves run scoreboard players add @s KyuDummy 1
execute positioned ~ 66 ~ run execute unless block ~1 ~ ~ #suhc:bloodboltpassthrough run execute unless block ~1 ~ ~ #minecraft:leaves run scoreboard players add @s KyuDummy 1
execute positioned ~ 66 ~ run execute unless block ~-1 ~ ~ #suhc:bloodboltpassthrough run execute unless block ~-1 ~ ~ #minecraft:leaves run scoreboard players add @s KyuDummy 1
execute positioned ~ 67 ~ run execute if block ~ ~ ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute positioned ~ 67 ~ run execute if block ~1 ~ ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute positioned ~ 67 ~ run execute if block ~-1 ~ ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute positioned ~ 68 ~ run execute if block ~ ~ ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute positioned ~ 68 ~ run execute if block ~1 ~ ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1
execute positioned ~ 68 ~ run execute if block ~-1 ~ ~ #suhc:bloodboltpassthrough run scoreboard players add @s KyuDummy 1

#check if it is on the border of an ocean, if so then fail the block check
execute as @s[scores={KyuDummy=9..}] run execute at @s positioned ~-4 66 ~18 run function zzzzdonotuse:structures/birchtavern/birchtavernblockcheckocean

#if any of the above block checks fail, kill the marker
kill @s[scores={KyuDummy=..8}]