execute if block ~ ~ ~ minecraft:polished_diorite_slab[type=top] run scoreboard players set @s bw_block 530
execute if block ~ ~ ~ minecraft:polished_diorite_slab[type=bottom] run scoreboard players set @s bw_block 531
execute if block ~ ~ ~ minecraft:polished_diorite_slab[type=double] run scoreboard players set @s bw_block 532