execute if block ~ ~ ~ minecraft:sandstone_slab[type=top] run scoreboard players set @s bw_block 593
execute if block ~ ~ ~ minecraft:sandstone_slab[type=bottom] run scoreboard players set @s bw_block 594
execute if block ~ ~ ~ minecraft:sandstone_slab[type=double] run scoreboard players set @s bw_block 595