execute if block ~ ~ ~ minecraft:tripwire_hook[facing=north] run scoreboard players set @s bw_block 1008
execute if block ~ ~ ~ minecraft:tripwire_hook[facing=east] run scoreboard players set @s bw_block 1009
execute if block ~ ~ ~ minecraft:tripwire_hook[facing=south] run scoreboard players set @s bw_block 1010
execute if block ~ ~ ~ minecraft:tripwire_hook[facing=west] run scoreboard players set @s bw_block 1011