execute if block ~ ~ ~ minecraft:carved_pumpkin[facing=north] run scoreboard players set @s bw_block 1162
execute if block ~ ~ ~ minecraft:carved_pumpkin[facing=east] run scoreboard players set @s bw_block 1163
execute if block ~ ~ ~ minecraft:carved_pumpkin[facing=south] run scoreboard players set @s bw_block 1164
execute if block ~ ~ ~ minecraft:carved_pumpkin[facing=west] run scoreboard players set @s bw_block 1165