execute if block ~ ~ ~ minecraft:sticky_piston[facing=up] run scoreboard players set @s bw_block 1182
execute if block ~ ~ ~ minecraft:sticky_piston[facing=down] run scoreboard players set @s bw_block 1183
execute if block ~ ~ ~ minecraft:sticky_piston[facing=north] run scoreboard players set @s bw_block 1184
execute if block ~ ~ ~ minecraft:sticky_piston[facing=west] run scoreboard players set @s bw_block 1185
execute if block ~ ~ ~ minecraft:sticky_piston[facing=east] run scoreboard players set @s bw_block 1186
execute if block ~ ~ ~ minecraft:sticky_piston[facing=south] run scoreboard players set @s bw_block 1187