I had some cured zombie villagers in my house, and they went to bed. So I placed by bed down and tried to sleep but got the "You can only sleep at night and during thunderstorms" message. The villagers are able to go to sleep earlier than the player can.
Reproduction steps (from MC-153736)
Remove and replace the door on your villager house with a block.
Make sure the villager has a bed and is in the house. Then, set your time (/time set 11500).
The villager should go to bed, now place a bed next to him and try to sleep. You can't unless you set the time again (/time set 12000).
Linked issues
is duplicated by 3
relates to 1
Attachments
Comments 10
Can confirm in 1.16.5 and 21w08b. Video attached. Also, here are some steps to reproduce this issue:
Steps to Reproduce:
Set the time to just before night.
/time set 12500
Place 2 beds and summon a villager next to one of them.
→ ❌ Notice how the villager is able to sleep earlier than you can.
Relates to MC-146144