execute if block ~ ~ ~ minecraft:lectern[facing=north] run scoreboard players set @s bw_block 1002
execute if block ~ ~ ~ minecraft:lectern[facing=east] run scoreboard players set @s bw_block 1003
execute if block ~ ~ ~ minecraft:lectern[facing=south] run scoreboard players set @s bw_block 1004
execute if block ~ ~ ~ minecraft:lectern[facing=west] run scoreboard players set @s bw_block 1005