execute if block ~ ~ ~ minecraft:cocoa[facing=east] run scoreboard players set @s bw_block 615
execute if block ~ ~ ~ minecraft:cocoa[facing=west] run scoreboard players set @s bw_block 616
execute if block ~ ~ ~ minecraft:cocoa[facing=south] run scoreboard players set @s bw_block 617
execute if block ~ ~ ~ minecraft:cocoa[facing=north] run scoreboard players set @s bw_block 618