execute if block ~ ~ ~ minecraft:powered_rail[shape=north_south] run scoreboard players set @s bw_block 1491
execute if block ~ ~ ~ minecraft:powered_rail[shape=east_west] run scoreboard players set @s bw_block 1492