A comparator that's hooked up to a block with an Item Frame will not update the signal strength after using a command like:
entitydata @e[type=ItemFrame] {ItemRotation:0b}
I have a combination lock set up and want to lock it again after entering using command blocks. This is however not possible in this way.
Comments 8
Searge, in MC-66115:
Please do not report issues related to NBT tags as bugs. If changing NBT via commands does not have the expected effect, that's always considered "working as intended".
If this report really should remain resolved, then it should at least be WAI, because the method net.minecraft.entity.item.EntityItemFrame.readEntityFromNBT(NBTTagCompound)
explicitely passes false
to the methods setting the item and rotation to prevent them from updating the comparator output.
That command (if correct) would have rotated every ItemFrame on the server, give it a custom name. Below I have listed the 2 commands to make it work the way you want:
Try this:
Summon a custom Item Frame with this command:
/summon ItemFrame ~ ~ ~ {id:"ItemFrame",CustomName:"LockFrame"}
Then use the command below to Lock/Unlock the Frame (ie spin it backwards to hide the arrow):
/entitydata @e[name=LockFrame] {Rotation:[180.0f,0.0f]}
.