The bug
Lodestone compasses that are either:
stored inside a container (like a chest for example)
stored inside of an item frame or
held by an entity (such as a zombie)
do not update if their connected lodestone is mined, causing them to be continuously pointed towards the same coordinates until it has been re-added to the player's inventory.
How to reproduce
Place a lodestone on the ground
Place an item frame on the ground
Right-click a new compass on the lodestone
Right-click the now lodestone-tied compass into the item frame
Break the lodestone
❌ the lodestone compass hasn't changed the direction it is pointing toLeft-click the lodestone compass out of the item frame and pick it up
✔ the lodestone compass is now rotating randomly
Linked issues
discovered while testing 1
is duplicated by 9
relates to 2
Attachments
Comments 7
While a lodestone compass in an itemframe doesn't suddenly start to rotate randomly when its lodestone is broken, interestingly, when its lodestone is replaced by a new one, taking it out of the item frame does magically connect it to the new block (as opposed to start randomly rotating because its original block isn't there anymore).
It seems the lodestone does only save the location to the block and not the block itself, while not updating it in any way while in an item frame.
Confirmed for 1.16 pre-release 6