execute if block ~ ~ ~ minecraft:wall_torch[facing=east] run scoreboard players set @s bw_block 599
execute if block ~ ~ ~ minecraft:wall_torch[facing=west] run scoreboard players set @s bw_block 600
execute if block ~ ~ ~ minecraft:wall_torch[facing=south] run scoreboard players set @s bw_block 601
execute if block ~ ~ ~ minecraft:wall_torch[facing=north] run scoreboard players set @s bw_block 602