Typically, when an entity is sleeping, it's rotated by 90° to depict lying down. However, spiders, cave spiders, silverfish, and endermites differ—they're rotated by 180° instead. This divergence likely stems from their death animation, where they rotate by 180°, unlike other entities that rotate by 90°.
Reproduction steps
/time set midnight
Position a bed with its foot at coordinates 0 -60 18
/summon minecraft:spider ~ ~ ~ {SleepingX:-1,SleepingY:-60,SleepingZ:18}
(You have the flexibility to modify the command coordinates if you've positioned the bed elsewhere.)
You can modify the spider in the command to a cave spider, silverfish, or endermite.
Observed: The mob is rotated by 180°.
Expected: The mob should be rotated by 90°.
Attachments
Comments 3

Affects 24w14a, requesting ownership to keep the report update if possible.

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
As evident in the screenshot, bees are not affected by this. Yet, if MC-234364 is addressed, bees are likely to be impacted as well.