execute if block ~ ~ ~ minecraft:polished_granite_slab[type=top] run scoreboard players set @s bw_block 524
execute if block ~ ~ ~ minecraft:polished_granite_slab[type=bottom] run scoreboard players set @s bw_block 525
execute if block ~ ~ ~ minecraft:polished_granite_slab[type=double] run scoreboard players set @s bw_block 526