execute if block ~ ~ ~ minecraft:trapped_chest[facing=north] run scoreboard players set @s bw_block 944
execute if block ~ ~ ~ minecraft:trapped_chest[facing=east] run scoreboard players set @s bw_block 945
execute if block ~ ~ ~ minecraft:trapped_chest[facing=south] run scoreboard players set @s bw_block 946
execute if block ~ ~ ~ minecraft:trapped_chest[facing=west] run scoreboard players set @s bw_block 947