execute if block ~ ~ ~ minecraft:piston[facing=up] run scoreboard players set @s bw_block 1176
execute if block ~ ~ ~ minecraft:piston[facing=down] run scoreboard players set @s bw_block 1177
execute if block ~ ~ ~ minecraft:piston[facing=north] run scoreboard players set @s bw_block 1178
execute if block ~ ~ ~ minecraft:piston[facing=west] run scoreboard players set @s bw_block 1179
execute if block ~ ~ ~ minecraft:piston[facing=east] run scoreboard players set @s bw_block 1180
execute if block ~ ~ ~ minecraft:piston[facing=south] run scoreboard players set @s bw_block 1181