3

How can I have item frames right in front of a player, and still keep them from stealing the items from the item frame(s)? [I don't want to have to use the /clear command to just clear the item from the player's inventory when they obtain it.]

  • Wait, ignore my last comment. I forgot it only works if you are on a server with protection. – angussidney Jan 30 '16 at 5:01
4

You can set Invulnerable to true to prevent an item frame from both providing the player with an item as well as preventing the player from breaking the item frame by punching it.

/entitydata @e[type=ItemFrame,c=1] {Invulnerable:1b}
| improve this answer | |
-1

Put the player in adventure mode. Players in adventure mode are not able to break item frames. Breaking entities in adventure was a bug and is resolved based on the bug tracker.

| improve this answer | |
  • 1
    That bug is resolved as "Working as Intended", not "Fixed". Adventure mode players can still break item frames. – Skylinerw Jan 30 '16 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.