mojira.dev
MC-91372

NBT Tags cant be checked on ItemFrames

I want to test the ItemRotation of an Item in an ItemFrame so i did:
/testfor @e[type=ItemFrame] {ItemRotation:1}
(for testing reasons)
but it doesnt work and it really frustrates me because i wanted to to a cool feature with it in my new map.

I hope this gets implemented/fixed soon
~Johann

Comments 3

Invalid.

/testfor @e[type=ItemFrame] {ItemRotation:1b}

(note there's a b after the value) should work though, since ItemRotation is a byte.

Use 1b instead of 1. The game will see '1' as an integer, but the value on the item frame is a byte, so the game needs to be told (by adding a 'b' after the 1) that you are looking for a byte of value 1.

Oh man im forgetting it everytime.
Thanks!

Johann Bartel

(Unassigned)

Unconfirmed

Minecraft 15w43c

Retrieved