execute if block ~ ~ ~ minecraft:acacia_slab[type=top] run scoreboard players set @s bw_block 509
execute if block ~ ~ ~ minecraft:acacia_slab[type=bottom] run scoreboard players set @s bw_block 510
execute if block ~ ~ ~ minecraft:acacia_slab[type=double] run scoreboard players set @s bw_block 511