execute if block ~ ~ ~ minecraft:spruce_slab[type=top] run scoreboard players set @s bw_block 506
execute if block ~ ~ ~ minecraft:spruce_slab[type=bottom] run scoreboard players set @s bw_block 507
execute if block ~ ~ ~ minecraft:spruce_slab[type=double] run scoreboard players set @s bw_block 508