Prevent Players From Stealing From Item Frames
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.]
Best Answer
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}
Pictures about "Prevent Players From Stealing From Item Frames"



How do you keep people from breaking item frames in Minecraft?
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.How do you lock items in item frames?
You can fix this problem by adding Invulnerability to the item frame when there is not an item in it. This will make the item frame Invulnerable when it doesn't hold stone . This will remove the Invulnerability when it holds stone .✔ Minecraft: 15 Things You Didn't Know About the Item Frame
More answers regarding prevent Players From Stealing From Item Frames
Answer 2
For people wanting to make all item frames invincible, just use
/execute as @e[type=minecraft:item_frame] run data merge entity @s {Invulnerable:1b}
Answer 3
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.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Atypeek Dgn, Alena Shekhovtcova, Alena Shekhovtcova, Alena Shekhovtcova
