execute if block ~ ~ ~ minecraft:barrel[facing=up] run scoreboard players set @s bw_block 952
execute if block ~ ~ ~ minecraft:barrel[facing=down] run scoreboard players set @s bw_block 953
execute if block ~ ~ ~ minecraft:barrel[facing=north] run scoreboard players set @s bw_block 954
execute if block ~ ~ ~ minecraft:barrel[facing=west] run scoreboard players set @s bw_block 955
execute if block ~ ~ ~ minecraft:barrel[facing=east] run scoreboard players set @s bw_block 956
execute if block ~ ~ ~ minecraft:barrel[facing=south] run scoreboard players set @s bw_block 957