execute if block ~ ~ ~ minecraft:brown_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 747
execute if block ~ ~ ~ minecraft:brown_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 748
execute if block ~ ~ ~ minecraft:brown_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 749
execute if block ~ ~ ~ minecraft:brown_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 750