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

Non-villager entities stay sleeping when pushed out of beds, causing desync between server and client

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w12a, 1.20.5, 1.20.6 Release Candidate 1
    • Confirmed
    • Entities, Mob behaviour

      Non-villager mobs continue sleeping even when pushed out of beds. However, they do cease sleeping when their bed is broken, as anticipated.

      Steps to Reproduce:

      1. Place a bed down with the 'foot' part positioned at 0 100 0
      2. Summon a creeper, sleeping in the bed
        /summon minecraft:creeper 0 100 0 {SleepingX:0,SleepingY:100,SleepingZ:-1}
        
      3. Push the creeper out of the bed
        → observe result
      4. (Optional) Leave and rejoin the world
        → observe result

      Observed Behavior:

      Because the server still thinks the creeper is sleeping in the bed despite being on the ground, the creeper will be displayed as laying down horizontally client-side to the player. If the player leaves and rejoins the world, the server will correct the error on the client's side, and put the creeper back into the bed.

      Expected Result:

      The creeper would wake up whenever it is pushed out of the bed, and stand upright.

      Screenshots/Videos:

      creeper_does_not_stop_sleeping.mp4

      Notes:

      1. Related to other 'entity sleeping in bed' issues:
        MC-269776 MC-269775 MC-269773 MC-269770 MC-269771
      2. If the entity is killed while out side of the bed, it will be quickly teleported to the beds position to display the death animation:
        CreeperDieBed.mp4

        1. creeper_does_not_stop_sleeping.mp4
          8.10 MB
          Pro of the best minecraft game: 1.8!
        2. CreeperDieBed.mp4
          3.17 MB
          [Helper] Jiingy

            Unassigned Unassigned
            Jingy [Helper] Jiingy
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: