#check for an empty block on the marker, and then around it for solid blocks to determine torch placement/facing direction
execute if block ~ ~ ~ #suhc:bloodboltpassthrough run tag @s add EmptyBlock
execute unless block ~1 ~ ~ #suhc:bloodboltpassthrough run tag @s[tag=EmptyBlock] add WestFacingTorch
execute unless block ~ ~ ~1 #suhc:bloodboltpassthrough run tag @s[tag=EmptyBlock] add NorthFacingTorch
execute unless block ~-1 ~ ~ #suhc:bloodboltpassthrough run tag @s[tag=EmptyBlock] add EastFacingTorch
execute unless block ~ ~ ~-1 #suhc:bloodboltpassthrough run tag @s[tag=EmptyBlock] add SouthFacingTorch
execute unless block ~ ~-1 ~ #suhc:bloodboltpassthrough run tag @s[tag=EmptyBlock] add GroundTorch

tag @s[tag=WestFacingTorch] add DoTorch
tag @s[tag=NorthFacingTorch] add DoTorch
tag @s[tag=EastFacingTorch] add DoTorch
tag @s[tag=SouthFacingTorch] add DoTorch
tag @s[tag=GroundTorch] add DoTorch

kill @s[tag=!WestFacingTorch,tag=!NorthFacingTorch,tag=!EastFacingTorch,tag=!SouthFacingTorch,tag=!GroundTorch]