execute if block ~ ~ ~ minecraft:red_sandstone_slab[type=top] run scoreboard players set @s bw_block 572
execute if block ~ ~ ~ minecraft:red_sandstone_slab[type=bottom] run scoreboard players set @s bw_block 573
execute if block ~ ~ ~ minecraft:red_sandstone_slab[type=double] run scoreboard players set @s bw_block 574