execute if block ~ ~ ~ minecraft:acacia_log[axis=x] run scoreboard players set @s bw_block 1551
execute if block ~ ~ ~ minecraft:acacia_log[axis=y] run scoreboard players set @s bw_block 1552
execute if block ~ ~ ~ minecraft:acacia_log[axis=z] run scoreboard players set @s bw_block 1553