mojira.dev
MC-44428

Command Block Locks are not working.

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

/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.

Oh well, thank you Dinnerbone. I expected it to work as it is a TileEntity, but that does not matter too much.

At this point, I have to question the validity of a beacon as a container. Yes, it can hold one item. Only one. Also, that item can only be one of four things, all of them being materials and not useful on their own.

energyxxer

(Unassigned)

Unconfirmed

/blockdata, block-entity, command

Minecraft 14w02b

Retrieved