execute if block ~ ~ ~ minecraft:stripped_spruce_log[axis=x] run scoreboard players set @s bw_block 1620
execute if block ~ ~ ~ minecraft:stripped_spruce_log[axis=y] run scoreboard players set @s bw_block 1621
execute if block ~ ~ ~ minecraft:stripped_spruce_log[axis=z] run scoreboard players set @s bw_block 1622