execute if block ~ ~ ~ minecraft:horn_coral_wall_fan[facing=north] run scoreboard players set @s bw_block 1199
execute if block ~ ~ ~ minecraft:horn_coral_wall_fan[facing=south] run scoreboard players set @s bw_block 1200
execute if block ~ ~ ~ minecraft:horn_coral_wall_fan[facing=east] run scoreboard players set @s bw_block 1201
execute if block ~ ~ ~ minecraft:horn_coral_wall_fan[facing=west] run scoreboard players set @s bw_block 1202