execute if block ~ ~ ~ minecraft:tube_coral_wall_fan[facing=north] run scoreboard players set @s bw_block 1215
execute if block ~ ~ ~ minecraft:tube_coral_wall_fan[facing=south] run scoreboard players set @s bw_block 1216
execute if block ~ ~ ~ minecraft:tube_coral_wall_fan[facing=east] run scoreboard players set @s bw_block 1217
execute if block ~ ~ ~ minecraft:tube_coral_wall_fan[facing=west] run scoreboard players set @s bw_block 1218