execute if block ~ ~ ~ minecraft:black_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 739
execute if block ~ ~ ~ minecraft:black_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 740
execute if block ~ ~ ~ minecraft:black_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 741
execute if block ~ ~ ~ minecraft:black_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 742