execute if block ~ ~ ~ minecraft:stripped_spruce_wood[axis=x] run scoreboard players set @s bw_block 1602
execute if block ~ ~ ~ minecraft:stripped_spruce_wood[axis=y] run scoreboard players set @s bw_block 1603
execute if block ~ ~ ~ minecraft:stripped_spruce_wood[axis=z] run scoreboard players set @s bw_block 1604