execute if block ~ ~ ~ minecraft:birch_trapdoor[half=bottom,facing=north] run scoreboard players set @s bw_block 1503
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=bottom,facing=east] run scoreboard players set @s bw_block 1504
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=bottom,facing=west] run scoreboard players set @s bw_block 1505
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=bottom,facing=south] run scoreboard players set @s bw_block 1506
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=top,facing=north] run scoreboard players set @s bw_block 1507
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=top,facing=east] run scoreboard players set @s bw_block 1508
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=top,facing=west] run scoreboard players set @s bw_block 1509
execute if block ~ ~ ~ minecraft:birch_trapdoor[half=top,facing=south] run scoreboard players set @s bw_block 1510