Reproduction:
Use /setblock x y z wooden_door 0 replace, where x y z is the location of the bottom half of an iron door.
Expected behavior:
The iron door should disappear, and be replaced with a wooden door.
Current behavior:
The iron door disappears, as expected, but the wooden door is dropped as an item, instead of being placed.
Other notes:
Replacing the top portion of a complete door of either type with any block, including air, causes the door to drop as an item.
Replacing the bottom portion of a complete door with any block, including air, causes the door to disappear.
Attachments
Comments 10
When the bottom block of a door is placed it does NOT attempt to create the top block. A separate command is required to spawn the top half of the door. It is possible that the bottom portion of the iron door is deleted and the top remains, causing the wooden and iron doors to attempt to merge.
Wayde Hutchings please calm down 🙂
Confirmed for 14w21b
The bug which causes this to be a duplicate doesn't relates/duplicates this!!!
You can use for example
/setblock ~ ~ ~ wooden_door 7
and then
/setblock ~ ~ ~ wooden_door 8
to create a complete door but like Wayde Hutchings said it is not possible to replace a already existing door (WOOD and IRON)
Please reopen!
Simple world for reproduction. North command blocks place the bottom and top of a wooden door, South command blocks replace with iron door parts.
If only the top or bottom block is placed, setblock can replace it with the same piece of the other door type, regardless of whether or not oldBlockHandling is specified. Attempting to place the other half of the other door will cause both blocks to break, dropping both a wooden and an iron door item.
If both top and bottom are placed, replacing the bottom block will remove both blocks, but only the new door will drop – the old door disappears entirely. Replacing the top block breaks both blocks, and causes both doors to drop.
Reopening. MC-41843 was about how each block must be placed separately. This issue is about the behavior when replacing an existing door with a different one.
It's possible to set the bottom block of the door to air. This will remove the entire door without dropping an item. You can then use setblock to place a new door.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.
In 1.8.2-pre6, replacing the top block causes the existing door to drop as an item, and the new upper block just disappears. Replacing the bottom block causes the old door to disappear, and the new one to drop as an item.
Is this still an issue in the current Minecraft Snapshot 15w49b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
It may be possible that it attempts to place the bottom block, which then creates the top block of the wooden door. The iron door, also being made of 2 blocks, only the bottom is deleted where the top remains until it is updated, which is the same time the wooden door attempts to place the top block. It is possible that it is a bug, but probably not. Try it with other multi-block items.