execute store result score @s[tag=bw_spiq] bw_calc run clear @s minecraft:oak_door 0
scoreboard players operation @s[tag=bw_spiq] bw_calc < #bw_cudu bw_calc
execute if score @s bw_calc matches 1.. unless block ~ ~-1 ~ #bw:gothrough if block ~ ~1 ~ #bw:gothrough run function bw:blocks/doors/oak/state
execute if score @s bw_mcxyz matches 5 run function bw:blocks/doors/oak/block_x
execute if score @s bw_mcxyz matches 6 run function bw:blocks/doors/oak/block_z
execute if score @s bw_mcxyz matches 8 run function bw:blocks/doors/oak/block_xz