All mobs can be made to sleep in beds using commands. In addition, multiple mobs can sleep as part of their natural behavior. Also, the players' and mobs' hitboxes reduce to 0.2 blocks when lying.
Villagers lie down when using a bed. They can be woken and removed from their bed by either breaking the bed, pushing them out of the bed, attacking them, or pressing use on the bed.
Cats lie, and sleep, on beds whenever their owner is sleeping on one. They emit specific sounds when doing so.
Foxes occasionally lie down and sleep during the day, taking shelter beneath blocks when doing so. Shade is a necessity for sleeping; if a path for direct sunlight is created that lights up a sleeping fox, it immediately wakes and tries to sleep elsewhere. Foxes are currently the only mob to switch to a texture with their eyes shut upon entering their sleeping state.
Lazy pandas occasionally lie on their backs. Unlike with other mobs, this is a passive action, which is unrelated to sleeping.
|Java Edition Beta|
|1.2||Added lying animation for the player.|