Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-266337

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.2, 23w44a, 23w45a
    • None
    • Confirmed
    • Player

      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.

            Unassigned Unassigned
            hentor5 hentor5
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: