execute if block ~ ~ ~ minecraft:hay_block[axis=x] run scoreboard players set @s bw_block 1137
execute if block ~ ~ ~ minecraft:hay_block[axis=y] run scoreboard players set @s bw_block 1138
execute if block ~ ~ ~ minecraft:hay_block[axis=z] run scoreboard players set @s bw_block 1139