execute if block ~ ~ ~ minecraft:green_glazed_terracotta[facing=north] run scoreboard players set @s bw_block 759
execute if block ~ ~ ~ minecraft:green_glazed_terracotta[facing=east] run scoreboard players set @s bw_block 760
execute if block ~ ~ ~ minecraft:green_glazed_terracotta[facing=south] run scoreboard players set @s bw_block 761
execute if block ~ ~ ~ minecraft:green_glazed_terracotta[facing=west] run scoreboard players set @s bw_block 762