execute if block ~ ~ ~ minecraft:pink_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 783
execute if block ~ ~ ~ minecraft:pink_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 784
execute if block ~ ~ ~ minecraft:pink_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 785
execute if block ~ ~ ~ minecraft:pink_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 786