execute if block ~ ~ ~ minecraft:jack_o_lantern[facing=north] run scoreboard players set @s bw_block 1166
execute if block ~ ~ ~ minecraft:jack_o_lantern[facing=east] run scoreboard players set @s bw_block 1167
execute if block ~ ~ ~ minecraft:jack_o_lantern[facing=south] run scoreboard players set @s bw_block 1168
execute if block ~ ~ ~ minecraft:jack_o_lantern[facing=west] run scoreboard players set @s bw_block 1169