execute if block ~ ~ ~ minecraft:ender_chest[facing=north] run scoreboard players set @s bw_block 948
execute if block ~ ~ ~ minecraft:ender_chest[facing=east] run scoreboard players set @s bw_block 949
execute if block ~ ~ ~ minecraft:ender_chest[facing=south] run scoreboard players set @s bw_block 950
execute if block ~ ~ ~ minecraft:ender_chest[facing=west] run scoreboard players set @s bw_block 951