execute if block ~ ~ ~ minecraft:magenta_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 775
execute if block ~ ~ ~ minecraft:magenta_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 776
execute if block ~ ~ ~ minecraft:magenta_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 777
execute if block ~ ~ ~ minecraft:magenta_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 778