Mojira Archive
MC-92719

You can sleep in beds near various hostile mobs

The bug

You can sleep in a bed despite the fact that there are some hostile mobs around. The game does not display the error message "You may not rest now, there are monsters nearby".

Mobs affected

You can sleep near:

  • Slimes
  • Magma Cubes
  • Ghasts
  • Shulkers (probably intended as they don't despawn with peaceful as difficulty)
  • Aggressive wolves
  • Killer rabbits
  • Ender dragons (see Shulker; however you cannot sleep near Withers)
  • Hoglins

How to reproduce

  1. Try to sleep in a bed next to one of the mobs mentioned above
  2. You'll be able to sleep in that bed without the console issuing a "You may not rest now, there are monsters nearby" warning