execute if block ~ ~ ~ minecraft:acacia_fence_gate[facing=north] run scoreboard players set @s bw_block 715
execute if block ~ ~ ~ minecraft:acacia_fence_gate[facing=east] run scoreboard players set @s bw_block 716
execute if block ~ ~ ~ minecraft:acacia_fence_gate[facing=south] run scoreboard players set @s bw_block 717
execute if block ~ ~ ~ minecraft:acacia_fence_gate[facing=west] run scoreboard players set @s bw_block 718