You May Rest Now - Enhanced Sleep System

This mod fundamentally changes Minecraft's standard "You may not rest now, there are monsters nearby" mechanic, giving players more flexibility when using beds. Now you can sleep peacefully even if hostile mobs are nearby, as long as they cannot reach you.
Configuration Modes
The mod can be configured through an in-game configuration menu available in Mod Menu (for Fabric/Quilt) or the mods tab (for Forge/NeoForge).
Three main modes are available:
VANILLA: standard game behavior - sleep is only possible when no monsters are nearbyDENY_IF_PATHFINDABLE: allows sleep if nearby monsters cannot find a path to youDISABLE: completely disables the monster proximity check - you can sleep in any situation