execute if block ~ ~ ~ minecraft:redstone_wall_torch[facing=east] run scoreboard players set @s bw_block 603
execute if block ~ ~ ~ minecraft:redstone_wall_torch[facing=west] run scoreboard players set @s bw_block 604
execute if block ~ ~ ~ minecraft:redstone_wall_torch[facing=south] run scoreboard players set @s bw_block 605
execute if block ~ ~ ~ minecraft:redstone_wall_torch[facing=north] run scoreboard players set @s bw_block 606