execute if block ~ ~ ~ minecraft:chipped_anvil[facing=north] run scoreboard players set @s bw_block 1024
execute if block ~ ~ ~ minecraft:chipped_anvil[facing=east] run scoreboard players set @s bw_block 1025
execute if block ~ ~ ~ minecraft:chipped_anvil[facing=south] run scoreboard players set @s bw_block 1026
execute if block ~ ~ ~ minecraft:chipped_anvil[facing=west] run scoreboard players set @s bw_block 1027