execute if block ~ ~ ~ minecraft:ladder[facing=north] run scoreboard players set @s bw_block 1158
execute if block ~ ~ ~ minecraft:ladder[facing=east] run scoreboard players set @s bw_block 1159
execute if block ~ ~ ~ minecraft:ladder[facing=south] run scoreboard players set @s bw_block 1160
execute if block ~ ~ ~ minecraft:ladder[facing=west] run scoreboard players set @s bw_block 1161