execute if block ~ ~ ~ minecraft:oak_slab[type=top] run scoreboard players set @s bw_block 500
execute if block ~ ~ ~ minecraft:oak_slab[type=bottom] run scoreboard players set @s bw_block 501
execute if block ~ ~ ~ minecraft:oak_slab[type=double] run scoreboard players set @s bw_block 502