execute if block ~ ~ ~ minecraft:end_stone_brick_slab[type=top] run scoreboard players set @s bw_block 542
execute if block ~ ~ ~ minecraft:end_stone_brick_slab[type=bottom] run scoreboard players set @s bw_block 543
execute if block ~ ~ ~ minecraft:end_stone_brick_slab[type=double] run scoreboard players set @s bw_block 544