execute if block ~ ~ ~ minecraft:red_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 791
execute if block ~ ~ ~ minecraft:red_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 792
execute if block ~ ~ ~ minecraft:red_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 793
execute if block ~ ~ ~ minecraft:red_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 794