command block door code example
Example: how to place a door with command blocks
these would have to be in different command blocks / different commands
-----------------------------------------------------------------------
/setblock (insert location here via numbers or ~) oak_door[half=lower]
/setblock (same location but one block up) oak_door[half=upper]