mojira.dev
MC-679

Compass points wrong direction after returning from nether

If you take a compass with you into the nether and back, it don't points anymore to the spawn point.
But always to following coordinates in the world:
x:8 y;?? z:8

It't reproducible in any gamemode.

The only solution I found is to close and reopen the savegame.

edit:
If you die (kill yourself) the compass is also fixed

edit2:
it's not such a big issue but still annoying.


When you travel to a different dimension the client receives a S07PacketRespawn packet (MCP 1.8 names). Because the client does not store all servers for the different dimensions it creates a new WorldClient and copies most of the data from the dimension before, for example if it was hardcore etc. or information contained in the respawn packet. The spawnpoint is however defaulted to the initial spawnpoint which is (8|64|8) because it is neiter contained in the respawn packet nor is it copied to the new WorldClient from the old one.

These might be some possible ways to solve it, that come in my mind right now:

  • Adding the spawnpoint in the respawn packet. This information would be unnecessary when the player dies in the overworld, this however already happens for the difficulty, the world type and the game mode.

  • Sending a S05PacketSpawnPosition from the server when the player changes the dimension and when the player dies in a different dimension. This creates the same bug described in this report when there is latency and the player does not receive this packet.

Related issues

MC-2478 Compass direction is incorrect after returning from Nether MC-4420 Compass randomly points in different direction in the over-world. Sometimes it points to the spawn other times it points elsewhere MC-5186 Compas got broken. MC-9532 Nether Portal Complete World Change/Delete MC-15826 Compass needle target changes MC-17520 compass break coming out of nether MC-27422 2 bugs spawn point and weird earth cutaway MC-32006 biome bug; Re neather MC-36214 Compass does not point to spawn point after leaving Nether MC-40384 Compass pointing to wrong spot after nether travel MC-44155 Compass North/Spawn Point MC-54393 Compass doesn't point at the spawn-point after been in the nether. MC-68647 setworldspawn is not saved permanently. MC-75676 True spawn and spawn chunks move after returning from the nether. MC-77096 Compass changes after trip through Nether MC-78857 Compass doesn't lead to spawn when traveled through Nether MC-80213 Compass changes where it points when returning from the nether. MC-80435 Spawnpoint changed after entering the Nether MC-88667 Spawnpoint getting moved when leaving nether. MC-94636 Spawn chunks not staying loaded? MC-94640 Centre of spawn chunks changing on compass MC-95442 Spawn chunks change after going through nether portal MC-96537 World Spawn Moves on Entering the Nether MC-98881 World spawn and Settings changes alone MC-103345 Compass points to new location in 1.10 MC-106006 Spawnchunks move after Nether visit. MC-107019 Compass not working properly after going to nether and back to overworld

Attachments

Comments

migrated
[media][media][media][media]
migrated

I can confirm this issue. It has happened to me. I almost lost my house because it pointed to a random location. Not only that but a new portal was created when I came back to the overworld, so I was in a totally different place. I didn't create a new portal somewhere else in the Nether yet I still ended up in the wrong place.

CubeTheThird

Can confirm.

migrated

Affects also version 1.4.5

migrated

I believe this can happen even without going to the nether. Sometimes the compass just doesn't work, but then later fixes itself when you die. I haven't been able to pin it down. It's hard to catch because it takes a while after starting a new world to get redstone to make a compass, so won't notice a world is broken right away, but I believe it has something to do with the spawn protection that keeps you from spawning in water. I'm not sure. It's been happening to me a lot and I'm pretty sure I don't even have to go to the nether for it to break and/or fix itself. Very weird. Annoying too since when it breaks often the compass is pointing far away from where you spawned and made a house etc., making the compass far less useful in that world.

migrated

Still exists in Snapshot 13w09a.
It's very annoying, because you can't leave the nether through a new portal.

CubeTheThird

Please do not mark as affecting future versions, as you could not have tested those.

migrated

I still get this in 1.5.1 though it happens not just when returning from the nether

migrated

Confirmed in 13w16

clipka

I noticed that it is irrelevant for the bug whether you carry a compass with you while traveling to the nether, or whether you obtain it later.

Still present in 13w17a.

I'm surprised this bug has been left around for so long; it seems to rarely pose a real problem, but when it does it might hit you hard.

clipka

still present in 13w18c

migrated

That's the middle of the 0,0 chunk. A default or fallback value that is becoming active unintentionally?

migrated

Still present in 1.7.2.

Thanks folks!

migrated

It's a HUGE issue for me, I'm almost always traveling. It literally points the opposite direction of my spawn (not bed spawn)

migrated

Still present in 1.7.4. Got back from nether and went on a trip....

migrated

F3 tells you the direction, so I never really use compases. I do use them to create maps, and it doesn't bother me.

migrated

Some people consider it cheating to press F3. (In survival anyway)

migrated

Do we break the record for the oldes bug never be resolved?
Seriously 1.3 years!
I just wish mojang does a overhaul to the compass and clock tools (add more functions and more tools) when they fix it.

migrated

Yeah, it would be nice to have this one resolved. Usually what I have to do is make a trail of breadcrumbs from my original spawn point to whereever the compass points to after coming back from the nether, but that's kinda annoying.

I would like to see the ability to craft an altimeter as well.

CubeTheThird

Sorry Jaden, the oldest open bug is MC-4. The dev team is overhauling lots of things, so be patient, as fixes will come.

migrated

Thx a lot for your work here. Don't hurry, I can wait. 😃

migrated

I have same situation so just do not go to nether with compass

migrated

Confirmed it occurs in 1.8. I just built a rail to the wrong spot >.>

migrated

Confirmed in 1.8.1 on a private server. I manually set the spawn point back to where it was supposed to be a few times, and thought I was losing my mind because the compass kept pointing back to 8/x/8 – until I found this bug report.

migrated

There is still hope for the 1.9 😛

migrated

Any news on this for 1.9?

migrated

Might be related to MC-46345.

migrated

happens on my 15w51b snapshot server

migrated

Confirmed for 1.8.9 and 15w51b.

marcono1234

When you travel to a different dimension the client receives a S07PacketRespawn packet (MCP 1.8 names). Because the client does not store all servers for the different dimensions it creates a new WorldClient and copies most of the data from the dimension before, for example if it was hardcore etc. or information contained in the respawn packet. The spawnpoint is however defaulted to the initial spawnpoint which is (8|64|8) because it is neiter contained in the respawn packet nor is it copied to the new WorldClient from the old one.

These might be some possible ways to solve it, that come in my mind right now:

  • Adding the spawnpoint in the respawn packet. This information would be unnecessary when the player dies in the overworld, this however already happens for the difficulty, the world type and the game mode.

  • Sending a S05PacketSpawnPosition from the server when the player changes the dimension and when the player dies in a different dimension. This creates the same bug described in this report when there is latency and the player does not receive this packet.

migrated

Confirmed for 16w02a.

marcono1234

Could you please include the comment from above?

migrated

@Marcono1234; ticket-autor here. Do you mean the affected snapshot version? or the comment about the S05PacketSpawnPosition?

marcono1234

I meant the comment about the packets, I probably could have said this more explicit 🙂
However @unknown did this already

Thank you anyways

shufboyardee

Affects 16w07a.

shufboyardee

Affects 16w07b.

migrated

Confirmed for 1.9-pre1

migrated

Still Affects 1.9.1-pre3.

migrated

Confirmed for 1.9.2

migrated

Confirmed for 1.9.3-pre3.

shufboyardee

Affects 1.9.4.

shufboyardee

Affects 16w20a.

migrated

Confirmed for 16w21a.

migrated

Confirmed for 16w21b.

migrated

Confirmed for 1.10-pre2.

migrated

Confirmed for 1.10.

FaRo1

The compass turns 360* if you cross the z=8 line at higher x values than 8 (when it points at 8 8).

FaRo1

When I teleport to 8.0 ~ 8.0, the compass turns when I execute
/tp ~-.0000000000000008881784197 ~ ~
Any lower value doesn't turn the compass no matter how often I execute it.
Is that of any value for the report?

migrated

Confirmed for 1.10.1.

migrated

Confirmed for 1.10.2.

migrated

Confirmed for 1.10.2

SunCat

@unknown, see the comment above yours

marcono1234

Confirmed fixed for 16w32b (probably 16w32a as well)

migrated

This Bug is in the Bedrock Version in Build 1.2.0.20

FaRo1

Then please create a report for it there.

migrated

Jens Bergensten

Confirmed

compass, coordinates, direction, nether, spawn

Minecraft 1.4.1, Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.4, Minecraft 1.4.5, ..., Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2

Minecraft 16w32a

Retrieved