When locking a command block with /blockdata or by using /setblock adding the {Lock:"Secret"}, the player can actually open the command block. This seems like a bug, since it is a tileEntity. Also, it should work, because if i check the last output on a command block with /blockdata trying to lock the command block, it says that the Command Block's data was Successfully changed.
Comments 3
Oh well, thank you Dinnerbone. I expected it to work as it is a TileEntity, but that does not matter too much.
/blockdata will always be successful for adding any tag; the tag doesn't have to be real for it to be able to add.
Locking containers is so that you can't take things out of containers. You can't take things out of command blocks, nor are they containers. They are not eligible for locking.