mojira.dev
MC-74309

Redstone signal of Item Frames doesn't update when using /entitydata

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

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]}

.

is this stil an issue in 1.8.8/15w31b?

Confirmed for 15w46a

Confirmed for 15w47a

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.

But why does it do that?

Julian Wachholz

(Unassigned)

Confirmed

Minecraft 1.8, Minecraft 15w31c, Minecraft 15w46a, Minecraft 15w47a

Retrieved