execute if block ~ ~ ~ minecraft:spruce_log[axis=x] run scoreboard players set @s bw_block 1560
execute if block ~ ~ ~ minecraft:spruce_log[axis=y] run scoreboard players set @s bw_block 1561
execute if block ~ ~ ~ minecraft:spruce_log[axis=z] run scoreboard players set @s bw_block 1562