When using a command using metadata/datavalues of a trapdoor, it does not register it. Thus, doing "/setblock x y z minecraft:trapdoor 1" and "/setblock x y z minecraft:trapdoor 0" will both result in a closed trapdoor.
This is very annoying when making adventure maps that utilize trapdoors, as I am currently doing. Opening it by hand still works, but spawning in/testing for opened trapdoors does not work.
Comments 3
Is this still a concern in the latest Minecraft version 13w48b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Compare which side the hinges are on between 0 and 1.
Metadata is 4 bits, and thus a range from 0-15. If I'm reading the information on the wiki correctly: for trapdoors, the low two bits determine which side the hinge is on. The third bit determines open/closed, and the highest bit determines whether it's attached to the bottom or top of the block.
So open trapdoors will have values in the range 4-7, 12-15, depending on position and orientation.