execute if block ~ ~ ~ minecraft:oak_wood[axis=x] run scoreboard players set @s bw_block 1581
execute if block ~ ~ ~ minecraft:oak_wood[axis=y] run scoreboard players set @s bw_block 1582
execute if block ~ ~ ~ minecraft:oak_wood[axis=z] run scoreboard players set @s bw_block 1583