It is possible for a bed to become completely obstructed and have no valid respawnable spaces around it, even in cases where the player should conceivably be able to respawn in a crouching or crawling position. The bed will as a result kick the player to world spawn instead of spawning the player sneaking or crawling.
To reproduce, just fill the area one block above a bed with top half slabs, making sure to keep the bottom clear, then attempt to respawn at that bed. It will completely disallow respawning instead of the expected behaviour of respawning in an alternate pose to fit the available space.
Related issues
Attachments
Comments


Can confirm
I can confirm for 20w46a.

This is an important problem, specially for mapmakers. I hope that this can be fixed soon.
Can confirm in 20w51a.
Can confirm in 21w03a.
Can confirm in 21w05b.
Thank you for your report!
We're tracking this issue in MC-147805, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki