execute if block ~ ~ ~ minecraft:purpur_slab[type=top] run scoreboard players set @s bw_block 587
execute if block ~ ~ ~ minecraft:purpur_slab[type=bottom] run scoreboard players set @s bw_block 588
execute if block ~ ~ ~ minecraft:purpur_slab[type=double] run scoreboard players set @s bw_block 589