If you use setblock to set a door, in any position, be it iron_door (71) or wooden_door (64), you instead get a 1-block high, door-thick invisible block. For the wooden door, you can right-click it to open and close it, and it rotates, and makes the sound. Attempting to trigger a invisible iron door to open will just make the door break and drop.
using REPLACE will change an already existing door's position (if you use a different block data)
What I expected to happen was...:
A door would be set, in its proper position.
What actually happened was...:
You get an invisible 1-high door.
Steps to Reproduce:
1. say or use a command block: /setblock iron_door ~2 ~ ~ 0 Replace
(any x y z will work)
This is intended. A door consists of 2 blocks, I.E. you need 2 command blocks. See my bug here for more info: MC-41304