execute if block ~ ~ ~ minecraft:stripped_oak_log[axis=x] run scoreboard players set @s bw_block 1617
execute if block ~ ~ ~ minecraft:stripped_oak_log[axis=y] run scoreboard players set @s bw_block 1618
execute if block ~ ~ ~ minecraft:stripped_oak_log[axis=z] run scoreboard players set @s bw_block 1619