4

I'm trying to put a map on an item frame, and I have used this command in order to make it unbreakable by players in adventure mode.

data merge entity @e[type=item_frame,sort=nearest,limit=1] {Invulnarable:1b}

But I do not want it to be rotatable, I have tried many nbt tags for the command above, but none of them seem to work.

Any solution on how can I make items on an item frame unrotatable?

1
  • Why not just put something like an armor stand in front of it?
    – Junelilly
    Commented Jul 3, 2021 at 18:44

1 Answer 1

2

The tag you are looking for is {Fixed: 1b}. From the Minecraft Wiki:

Fixed: 1 or 0 (true/false) - true to prevent it from dropping if it has no support block, being moved (e.g. by pistons), taking damage, and placing an item in it, removing its item or rotating it.

In addition, the command you provided in the question won't work because you misspelled Invulnerable. But with Fixed, you don't need the invulnerable command at all.

2
  • This worked perfectly! Thank you so much.
    – seek gxng
    Commented Jul 4, 2021 at 17:51
  • Also, I know I misspelled Invulnerable, but I retyped the command in order to understand the idea.
    – seek gxng
    Commented Jul 8, 2021 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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