execute if block ~ ~ ~ minecraft:spruce_fence_gate[facing=north] run scoreboard players set @s bw_block 727
execute if block ~ ~ ~ minecraft:spruce_fence_gate[facing=east] run scoreboard players set @s bw_block 728
execute if block ~ ~ ~ minecraft:spruce_fence_gate[facing=south] run scoreboard players set @s bw_block 729
execute if block ~ ~ ~ minecraft:spruce_fence_gate[facing=west] run scoreboard players set @s bw_block 730