execute if block ~ ~ ~ minecraft:oak_log[axis=x] run scoreboard players set @s bw_block 1563
execute if block ~ ~ ~ minecraft:oak_log[axis=y] run scoreboard players set @s bw_block 1564
execute if block ~ ~ ~ minecraft:oak_log[axis=z] run scoreboard players set @s bw_block 1565