I put bookshelves above my bed for a nice aesthetic, but whenever I woke up, I took damage. I broke everything else to see what the problem, then when I took away the bookshelves, I didn't take damage. Other blocks do this too.
How to recreate:
1. Place a bed.
2. Put a block one block above the head of the bed.
3. Go to sleep.
Thank you for your report!
However, this report is Invalid.
Your game is modified.
If you can reproduce the issue in a vanilla game environment, please create a new ticket - this is a bug tracker for the game, and not a support website.
Any issues occurring from game modifications need to be taken up with the appropriate team, not Mojang Studios or the Bugtracker.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord