mojira.dev
MC-266337

Player constantly switch between being on the ground and in midair when in bed

The Bug:

Discovered while testing MC-190551 and MC-198256.

When a player enters a bed, they constantly switch between being on the ground and in midair. The value of OnGround changing between 1b and 0b confirms this.

Steps to Reproduce:

  1. Put the following commands into two repeating command blocks:

    title @a[nbt={OnGround:1b}] actionbar {"text":"On Ground"}
    title @a[nbt={OnGround:0b}] actionbar {"text":"Midair"}
  2. Set the time to night with the following command:

    /time set night
  3. Place a bed and enter it.
    ❌ The OnGround is continuously changing between 1b and 0b.

Observed Behavior:

The player is constantly switching between being on the ground and in midair when in a bed.

Expected Behavior:

The player stays either on ground or in midair when in a bed.

Linked issues

Attachments

Comments 1

This issue is likely related to MC-148370 and MC-19830.

hentor5

(Unassigned)

Confirmed

Player

1.20.2, 23w44a, 23w45a

Retrieved