execute if block ~ ~ ~ minecraft:repeater[facing=north] run scoreboard players set @s bw_block 1012
execute if block ~ ~ ~ minecraft:repeater[facing=east] run scoreboard players set @s bw_block 1013
execute if block ~ ~ ~ minecraft:repeater[facing=south] run scoreboard players set @s bw_block 1014
execute if block ~ ~ ~ minecraft:repeater[facing=west] run scoreboard players set @s bw_block 1015