execute if block ~ ~ ~ minecraft:gray_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 755
execute if block ~ ~ ~ minecraft:gray_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 756
execute if block ~ ~ ~ minecraft:gray_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 757
execute if block ~ ~ ~ minecraft:gray_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 758