execute if block ~ ~ ~ minecraft:DOOR[open=true,facing=FACING_BEFORE,hinge=HINGE_BEFORE,powered=false,half=lower] run function BASE_DIR/replace/DIRECTORY/DOOR
