execute if block ~ ~ ~ minecraft:damaged_anvil[facing=north] run scoreboard players set @s bw_block 1028
execute if block ~ ~ ~ minecraft:damaged_anvil[facing=east] run scoreboard players set @s bw_block 1029
execute if block ~ ~ ~ minecraft:damaged_anvil[facing=south] run scoreboard players set @s bw_block 1030
execute if block ~ ~ ~ minecraft:damaged_anvil[facing=west] run scoreboard players set @s bw_block 1031