execute if block ~ ~ ~ minecraft:white_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 795
execute if block ~ ~ ~ minecraft:white_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 796
execute if block ~ ~ ~ minecraft:white_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 797
execute if block ~ ~ ~ minecraft:white_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 798