execute if block ~ ~ ~ minecraft:orange_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 779
execute if block ~ ~ ~ minecraft:orange_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 780
execute if block ~ ~ ~ minecraft:orange_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 781
execute if block ~ ~ ~ minecraft:orange_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 782