Minecraft wiki entry for Lying, associated text: 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.