execute if block ~ ~ ~ minecraft:quartz_slab[type=top] run scoreboard players set @s bw_block 590
execute if block ~ ~ ~ minecraft:quartz_slab[type=bottom] run scoreboard players set @s bw_block 591
execute if block ~ ~ ~ minecraft:quartz_slab[type=double] run scoreboard players set @s bw_block 592