execute if block ~ ~ ~ #bw:gothrough run function bw:blocks/slabs/zy
execute unless block ~ ~ ~ #bw:gothrough if score @s bw_calc matches 1.. if score #bw_max bw_calc matches 1.. positioned ~ ~ ~1 if block ~ ~ ~ #bw:gothrough run function bw:blocks/slabs/zy_set_z
execute unless block ~ ~ ~ #bw:gothrough if score @s bw_calc matches 1.. if score #bw_max bw_calc matches 1.. positioned ~ ~ ~-1 if block ~ ~ ~ #bw:gothrough run function bw:blocks/slabs/zy_set_z
execute unless block ~ ~ ~ #bw:gothrough if score @s bw_calc matches 1.. if score #bw_max bw_calc matches 1.. positioned ~ ~1 ~ if block ~ ~ ~ #bw:gothrough run function bw:blocks/slabs/zy_set_y
execute unless block ~ ~ ~ #bw:gothrough if score @s bw_calc matches 1.. if score #bw_max bw_calc matches 1.. positioned ~ ~-1 ~ if block ~ ~ ~ #bw:gothrough run function bw:blocks/slabs/zy_set_y