A mod born out of frustration on how the current sleeping system in Minecraft works.
Are you tired of waking up and walking outside only to be immediately assaulted by a wandering hoard of mobs? Do you wish that you could go to sleep full well knowing that when you wake up your base will not be under threat of being demolished by a bush monster?
Well then this is the mod for you! Calm Mornings makes it so upon waking, all hostile mobs within a configurable radius around the player are forcefully despawned. Saving your base from daytime raids, and making your morning strolls a bit calmer.
How it works:
Calm Mornings can either grab any entity if they are of type MONSTER(excluding a select few) or will match the mobs from a user defined list in the configs. Upon the player finishing sleeping, having not slept too close to morning(configurable) and slept for long enough(configurable), as well as the gotten entities not being around other non-sleeping players(configurable), Calm Mornings will despawn the gotten entities around the player. The area in which it checks for mobs around the player scales depending on the current difficulty of the world(configurable).
Works great with Mob Sunscreen, Burn in the Sun & Hourglass Q: Will you make a Fabric version?
A: Not within the foreseeable future. This could change as I get better at modding, but for now, the answer is no.
Q: Update when?
A: 1.19.3 is my last planned update for this mod, but don't worry! I plan on taking the features of this mod and implementing it into another sleep related mod that has a bit of a larger scope than just despawning entities when the player wakes up.
I will still fix any existing bugs with this mod, just no major updates/features will come going forward.
Q: Please backport to X version!
A: No.
How does this mod interact with monsters with nametags?
In reply to thekubapacksmp:
Ignores them.
how does it work with hourglass
In reply to decapoddan:
It should work fine as this mod triggers on the PlayerWakeUpEvent, so as long as Hourglass isn't messing with that it shouldn't cause any issues.
Just tested it to be sure, and yes, it works flawlessly.
In reply to ForgottenSalt:
hmm, but then if thats the case wouldnt people be able to just go to sleep while mobs are just out of range, immediately get back up, and theyre gone, if possible could you add a time config for how long they have to stay asleep for with hourglass, cause hourglass has progressive sleep where you stay lying down and it speeds up time
In reply to decapoddan:
I will look into adding an additional check in the next update. Thanks for the heads up!
Also, going forward, please post any issues/bugs/suggestions to the github. Just makes it easier for me to track in the future. Thanks!
"The rest of the modding community has moved on and it's time for you to do the same"
Wow, how aggressive, don't you think? A simple "no plans to backport" was enough. Such an aggressive message will only bring you problems and discussions with other users in the future.