mojira.dev
MC-175988

Dying without a valid spawnpoint causes a softlock

Workaround

Run /spawnpoint, and then close and reopen the world.

The bug

After dying and respawning in 20w13a without a valid spawn point, the game is in a softlocked state. The player will have a duplicated version of themselves standing at the same location, and they won't be able to move or interact with the world in any other way. This even persists after closing and reopening the world. This affects all game modes.

When this happens, the following will be printed into the game console:

Error executing task on Server
java.lang.NullPointerException
	at bns.l(SourceFile:173)
	at bns.d_(SourceFile:421)
	at aav.a(SourceFile:495)
	at zc.a(SourceFile:1216)
	at qv.a(SourceFile:30)
	at qv.a(SourceFile:8)
	at na.a(SourceFile:21)
	at ug.run(SourceFile:18)
	at akx.c(SourceFile:144)
	at alb.c(SourceFile:23)
	at net.minecraft.server.MinecraftServer.b(SourceFile:749)
	at net.minecraft.server.MinecraftServer.c(SourceFile:142)
	at akx.w(SourceFile:118)
	at net.minecraft.server.MinecraftServer.bc(SourceFile:731)
	at net.minecraft.server.MinecraftServer.w(SourceFile:725)
	at akx.c(SourceFile:127)
	at net.minecraft.server.MinecraftServer.v(SourceFile:710)
	at net.minecraft.server.MinecraftServer.run(SourceFile:662)
	at java.base/java.lang.Thread.run(Thread.java:835)

Error executing task on Server
java.lang.NullPointerException
	at yd.b(SourceFile:201)
	at xw.a(SourceFile:904)
	at yi.a(SourceFile:478)
	at zc.a(SourceFile:845)
	at ri.a(SourceFile:122)
	at ri$b.a(SourceFile:18)
	at na.a(SourceFile:21)
	at ug.run(SourceFile:18)
	at akx.c(SourceFile:144)
	at alb.c(SourceFile:23)
	at net.minecraft.server.MinecraftServer.b(SourceFile:749)
	at net.minecraft.server.MinecraftServer.c(SourceFile:142)
	at akx.w(SourceFile:118)
	at net.minecraft.server.MinecraftServer.bc(SourceFile:731)
	at net.minecraft.server.MinecraftServer.w(SourceFile:725)
	at akx.bm(SourceFile:103)
	at net.minecraft.server.MinecraftServer.v(SourceFile:709)
	at net.minecraft.server.MinecraftServer.run(SourceFile:662)
	at java.base/java.lang.Thread.run(Thread.java:835)

To reproduce

  1. Run /spawnpoint @s ~ ~ ~ while in spectator mode somewhere underground (so that the spawnpoint would be blocked

  2. Switch into Creative, Survival, or Adventure mode

  3. Die

  4. Respawn
    → ❌ Your game is in a softlocked state

Linked issues

MC-176005 Using /kill ceases most if not all functional gameplay Resolved MC-176009 My character had been duplicated Resolved MC-176013 After dying in a creative world in the nether while on survival, respawned with a buggy game Resolved MC-176016 You cannot move, destroy and place blocks after you die. Resolved MC-176021 20w13a Camera disjoins from player when dying Resolved

Attachments

Comments 31

It's a bug that makes this snapshot impossible to play. One death and your game is lost... Something like hardcore ;]

Confirmed. This frozen state is literally impossible to escape, even with commands, making the snapshot practically unplayable. This needs to be fixed ASAP.

You can also punch and kill yourself when in survival mode in this state.

All worlds are hardcore...

I wasn't able to confirm, does this only happen if the spawnpoint is blocked / not set / something like that?

21 more comments

Literally the weirdest bug I have ever experienced.

This also happens in Multiplayer. For a workaround I have decided to downgrade to 20w12a.

Here is a YouTube video.

https://www.youtube.com/watch?v=pWF7oveGx2Y&feature=youtu.be

This happens because the health of the player is not set to 20 after respawning and stays 0.

Same happened to me, you can even kill yourself

Had this problem in a multiplayer server I host. Was unable to fix through setting the affected players spawnpoint. Eventually had to manually delete their .dat file to allow them to keep playing.

Cosmic306

(Unassigned)

Confirmed

Player

20w13a

20w13b

Retrieved