execute if block ~ ~ ~ minecraft:dead_bubble_coral_wall_fan[facing=north] run scoreboard players set @s bw_block 1227
execute if block ~ ~ ~ minecraft:dead_bubble_coral_wall_fan[facing=south] run scoreboard players set @s bw_block 1228
execute if block ~ ~ ~ minecraft:dead_bubble_coral_wall_fan[facing=east] run scoreboard players set @s bw_block 1229
execute if block ~ ~ ~ minecraft:dead_bubble_coral_wall_fan[facing=west] run scoreboard players set @s bw_block 1230