execute if block ~ ~ ~ minecraft:birch_fence_gate[facing=north] run scoreboard players set @s bw_block 719
execute if block ~ ~ ~ minecraft:birch_fence_gate[facing=east] run scoreboard players set @s bw_block 720
execute if block ~ ~ ~ minecraft:birch_fence_gate[facing=south] run scoreboard players set @s bw_block 721
execute if block ~ ~ ~ minecraft:birch_fence_gate[facing=west] run scoreboard players set @s bw_block 722