execute if block ~ ~ ~ minecraft:petrified_oak_slab[type=top] run scoreboard players set @s bw_block 596
execute if block ~ ~ ~ minecraft:petrified_oak_slab[type=bottom] run scoreboard players set @s bw_block 597
execute if block ~ ~ ~ minecraft:petrified_oak_slab[type=double] run scoreboard players set @s bw_block 598