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:
- Place a bed down with the 'foot' part positioned at 0 100 0
- Summon a creeper, sleeping in the bed
/summon minecraft:creeper 0 100 0 {SleepingX:0,SleepingY:100,SleepingZ:-1}
- Push the creeper out of the bed
→ observe result - (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