mojira.dev
MC-222897

Players can respawn on air blocks when no other nearby blocks are present at their spawnpoint

The Bug:

Players can respawn on air blocks when no other nearby blocks are present at their spawnpoint.

When respawning, if you don't have a spawnpoint you will get placed at the world spawn. If there are no valid spots at the world spawn, you can fall and die in the void permanently, resulting in you being stuck in a death loop.

Steps to Reproduce:

  1. Set the world spawn to your current position and the "spawnRadius" gamerule to a value of "5" by using the commands provided below.

    /setworldspawn ~ ~ ~
    /gamerule spawnRadius 5
  2. Set the "commandModificationBlockLimit" gamerule to one million blocks and summon a giant box of air around yourself by using the commands provided below.

    /gamerule commandModificationBlockLimit 1000000
    /fill ~-30 ~20 ~-30 ~30 -64 ~30 minecraft:air
  3. Ensure that you don't have your spawnpoint bound to a bed or respawn anchor and run the "/kill" command.

  4. Observe where you respawn.

  5. Take note as to whether or not players can respawn on air blocks when no other nearby blocks are present at their spawnpoint.

Observed Behavior:

Players can respawn on air blocks, potentially causing them to die repeatedly.

Expected Behavior:

Players would not respawn on air blocks and instead respawn somewhere safe.

Linked issues

Attachments

Comments 3

Is this still an issue for you in 1.18.1?

Yes, this is still an issue

Confirmed. The floating islands world preset no longer exists, however, there is still a way to reproduce this behavior in a regular world. I've updated this ticket accordingly so that it's easily reproducible and that the problem is clearly and concisely stated. 🙂

PR0CESS

(Unassigned)

Confirmed

(Unassigned)

1.16.5, 21w14a, 1.17 Pre-release 1, 1.18.1, 22w03a, 23w06a, 1.21.4

Retrieved