execute if block ~ ~ ~ minecraft:stripped_acacia_wood[axis=x] run scoreboard players set @s bw_block 1587
execute if block ~ ~ ~ minecraft:stripped_acacia_wood[axis=y] run scoreboard players set @s bw_block 1588
execute if block ~ ~ ~ minecraft:stripped_acacia_wood[axis=z] run scoreboard players set @s bw_block 1589