execute if block ~ ~ ~ minecraft:light_gray_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 771
execute if block ~ ~ ~ minecraft:light_gray_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 772
execute if block ~ ~ ~ minecraft:light_gray_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 773
execute if block ~ ~ ~ minecraft:light_gray_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 774