execute if score @s bw_block matches 1535 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=bottom,facing=north,waterlogged=false]
execute if score @s bw_block matches 1535 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=bottom,facing=north,waterlogged=true]
execute if score @s bw_block matches 1536 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=bottom,facing=east,waterlogged=false]
execute if score @s bw_block matches 1536 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=bottom,facing=east,waterlogged=true]
execute if score @s bw_block matches 1537 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=bottom,facing=west,waterlogged=false]
execute if score @s bw_block matches 1537 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=bottom,facing=west,waterlogged=true]
execute if score @s bw_block matches 1538 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=bottom,facing=south,waterlogged=false]
execute if score @s bw_block matches 1538 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=bottom,facing=south,waterlogged=true]
execute if score @s bw_block matches 1539 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=top,facing=north,waterlogged=false]
execute if score @s bw_block matches 1539 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=top,facing=north,waterlogged=true]
execute if score @s bw_block matches 1540 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=top,facing=east,waterlogged=false]
execute if score @s bw_block matches 1540 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=top,facing=east,waterlogged=true]
execute if score @s bw_block matches 1541 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=top,facing=west,waterlogged=false]
execute if score @s bw_block matches 1541 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=top,facing=west,waterlogged=true]
execute if score @s bw_block matches 1542 run setblock -30000000 2 1610 minecraft:spruce_trapdoor[half=top,facing=south,waterlogged=false]
execute if score @s bw_block matches 1542 run setblock -30000000 1 1610 minecraft:spruce_trapdoor[half=top,facing=south,waterlogged=true]
function bw:waterstate/direction
execute if score @s bw_calc matches 1.. run playsound minecraft:block.wood.place block @s ~ ~ ~ 1 0.8