execute if block ~ ~ ~ minecraft:detector_rail[shape=north_south] run scoreboard players set @s bw_block 1489
execute if block ~ ~ ~ minecraft:detector_rail[shape=east_west] run scoreboard players set @s bw_block 1490