execute if block ~ ~ ~ minecraft:cobblestone_slab[type=top] run scoreboard players set @s bw_block 521
execute if block ~ ~ ~ minecraft:cobblestone_slab[type=bottom] run scoreboard players set @s bw_block 522
execute if block ~ ~ ~ minecraft:cobblestone_slab[type=double] run scoreboard players set @s bw_block 523