It's always been such a glaring hole in this game for me - that monsters don't attack when one's sleeping.
If there isn't a monster nearby when one goes to sleep, then one can literally go to sleep anywhere and be safe from getting attacked while one sleeps.
The odds of getting attacked while sleeping in a particular location should be the same as if one was standing in that spot for the duration of the time.
If one has a bed, then night is literally nothing to be afraid of, whereas it should be pretty terrifying, if one isn't in a secure location.
I think that was a feature like this in older versions of the game but it was removed (unless I'm thinking things).
Besides that I have reviewed a mod that has it where you will get attacked by mobs in your sleep but it's for Forge 1.15.2, the mod is called Night Terror. You can find it here: https://www.curseforge.com/minecraft/mc-mods/night-terror
It hasn't updated since and even as I document mods every 1 to 3 days and review new mods daily I haven't seen one like it (to my knowledge) for 1.16 versions yet.
I wouldn't think this would make all that much difference unless mobs were actually teleported to your location.
All you'd have to do would be to dig a hole in the nearest hillside (or in the ground), place the bed, block up the hole and go to sleep.
Besides, if you go to bed early enough no monsters will spawn anyway, or were you thinking that would change?
I suppose it would be possible to change it while still allowing the night to pass quickly by adding in a probability that you would only sleep for part of the night and then have monsters spawn close enough that you woke up, like how you can't go to sleep with monsters too close which would force you to dig 16 (?) blocks in/down and hope you weren't close to a cave.
All in all it seems like it would be more of an annoyance than a real danger.
The major difference I can see would be that in the evening you'd have to run far away from any village one was working on securing.
I actually agree it'd make more sense (not just for realism sake, but maybe gameplay) for this to be how it works, but there's likely one or two big two reasons it's not.
The first is resources; I think you'd have to basically calculate all the mob spawning and AI that could/would occur over the time period between the current time you attempt to sleep and dawn (worst case scenario, I admit, as it'd be less if you're awoken early as you'd likely be if it's not in a safe spot). I could be overestimating the hardware demand cost of this, but it could be steep, and Minecraft is unnecessarily heading the ways of needing more and more of this as it is.
The second is, as said above, even if it makes sense for gameplay, you can just get around this by burrowing your bed into the ground, so it probably makes little sense to put the work in to make a feature that many players would probably not receive such a change so well anyway.
This is false. There is no code in Minecraft that explicitly cancels mob attacks as a direct consequence of sleeping in a bed. What you're seeing [that makes you think they cannot attack you] is simply an interaction between 3 different mechanics related to mobs that together generally create conditions where mobs simply can't get close enough to land an attack during the sleep cycle:
1)mobs cannot spawn within 24 blocks of a player
2)you cannot sleep in a bed if there are mobs within an ovoid around the bed that spans 8 blocks horizontally and 5 blocks vertically
3)generally, mobs can detect a player up to 16 blocks away. Several exceptions exist, such as blazes (40 blocks away), ghasts (JE: 64 blocks horizontally and 4 blocks vertically, BE: 28 blocks), and zombies (40 blocks away). Additionally, if you wear a skeleton, zombie, or creeper head you can reduce the player-detection for these mobs by half (from 16 to 8) but this is a java edition exclusive. The wiki doesn't say anything about it for wither skeletons, so I'm assuming this is not similarly the case.
It is fully possible to kite a hostile mob close enough to the bed that it can land one attack, and naturally if your health were already low enough that one attack could kill you then you would definitely die "in your sleep".
I think that was a feature like this in older versions of the game but it was removed (unless I'm thinking things).
Besides that I have reviewed a mod that has it where you will get attacked by mobs in your sleep but it's for Forge 1.15.2, the mod is called Night Terror. You can find it here: https://www.curseforge.com/minecraft/mc-mods/night-terror
It hasn't updated since and even as I document mods every 1 to 3 days and review new mods daily I haven't seen one like it (to my knowledge) for 1.16 versions yet.
Thanks for the link. That mod would appear to achieve the main aim of what I'm looking for.
I know I wasn't crazy. I'm glad someone remembers this feature.
Thanks for bringing back one of the features that made Minecraft be Minecraft !
As much as this feature was annoying, man do I miss it.
God I remember this- didn't they remove it because they couldn't get it to work right or something? I remember trying to sleep in a dirt hut filled with torches and still getting attacked lmao.
This works a lot better than Mojang's version from way back then.
I actually agree it'd make more sense (not just for realism sake, but maybe gameplay) for this to be how it works, but there's likely one or two big two reasons it's not.
The first is resources; I think you'd have to basically calculate all the mob spawning and AI that could/would occur over the time period between the current time you attempt to sleep and dawn (worst case scenario, I admit, as it'd be less if you're awoken early as you'd likely be if it's not in a safe spot). I could be overestimating the hardware demand cost of this, but it could be steep, and Minecraft is unnecessarily heading the ways of needing more and more of this as it is.
It looks like the mod linked to above avoids calculating mob movement over the course of the night, and instead has a "RNG roulette", with a "terror_chance" setting:
the base chance of being woken up. This chance is multiplied by a "difficulty modifier" (Peaceful - 0.5, Easy- 0.75, Normal - 1, Hard - 1.5).
So, with bad luck with the RNG, a monster will appear.
It's not as good as having mob movement calculated, but it achieves the same basic aim, which is to restore jeopardy and terror to sleeping in an area of unsecured darkness.
This is false. There is no code in Minecraft that explicitly cancels mob attacks as a direct consequence of sleeping in a bed. What you're seeing [that makes you think they cannot attack you] is simply an interaction between 3 different mechanics related to mobs that together generally create conditions where mobs simply can't get close enough to land an attack during the sleep cycle:
As you say, zombies detect up to 40 blocks away. I think that one would be near-guaranteed to be attacked by a zombie if sleeping in the open was the same as standing still in the open. I just did a quick test, spending the night awake in a single spot, and I attracted a zombie and a baby zombie. Also, If the difficulty is set to Hard, zombies can spawn reinforcements.
If this is the minecraft world you want, then why bother sleeping at all? If it's just to have a monster rich yet phantom-less world, then sleeping once every 3 days will give you that. I honestly fail to see what purpose this bit of 'realism' serves the game, when you can get what you're after simply by not sleeping.
If we wish to be realistic, why doesn't the player suffer fatigue penalties when not sleeping? Why can the player effectively sleep for slightly more than half of the day/night cycle? Why don't villages and players snore while sleeping? Why don't players dream? Why isn't there a unique, dreamtime world, unique from the Overworld, Nether or The End?
I am genuinely failing to see how this feature is in any way 'essential'. What am I missing? Why do you consider mob generation while sleeping to be essential?
If this is the minecraft world you want, then why bother sleeping at all? If it's just to have a monster rich yet phantom-less world, then sleeping once every 3 days will give you that. I honestly fail to see what purpose this bit of 'realism' serves the game, when you can get what you're after simply by not sleeping.
If we wish to be realistic, why doesn't the player suffer fatigue penalties when not sleeping? Why can the player effectively sleep for slightly more than half of the day/night cycle? Why don't villages and players snore while sleeping? Why don't players dream? Why isn't there a unique, dreamtime world, unique from the Overworld, Nether or The End?
I am genuinely failing to see how this feature is in any way 'essential'. What am I missing? Why do you consider mob generation while sleeping to be essential?
Sleeping means one avoids night, when it's dangerous to travel overland. The sleeping feature means one can essentially skip the night, instead of standing around for several minutes waiting for dawn. It's also necessary for avoiding phantoms.
"Essential" is my opinion of this feature. I've not used any Minecraft mods before, and the only one I am eager to use would be this one, which would correct what is, in my view, the biggest flaw in the game. That is my opinion.
As I've stated, I view this feature as essential for immersion reasons. I think night time in the game should be a time of danger, as it is when one is awake. While the game departs from reality in many respects that I can accept without objection, I find it absurd that I can be immune from the dangers of night, in any exposed location, by setting up my bed and having a sleep.
If this is the minecraft world you want, then why bother sleeping at all? If it's just to have a monster rich yet phantom-less world, then sleeping once every 3 days will give you that.
There is now also a gamerule specifically to remove phantoms.
Sleeping means one avoids night, when it's dangerous to travel overland. The sleeping feature means one can essentially skip the night, instead of standing around for several minutes waiting for dawn. It's also necessary for avoiding phantoms.
"Essential" is my opinion of this feature. I've not used any Minecraft mods before, and the only one I am eager to use would be this one, which would correct what is, in my view, the biggest flaw in the game. That is my opinion.
As I've stated, I view this feature as essential for immersion reasons. I think night time in the game should be a time of danger, as it is when one is awake. While the game departs from reality in many respects that I can accept without objection, I find it absurd that I can be immune from the dangers of night, in any exposed location, by setting up my bed and having a sleep.
As was mentioned by one other person in this thread this could be easily circumvented by building the bed while in a hole in the ground that is sealed off from the surface, and since monsters do not spawn within a 24 blocks radius range of the player, you'd be completely safe doing this especially if you double layered the dirt on top in case of endermen.
This serves no other purpose than to cause a minor inconvenience simply because another individual wanted it.
If you want night time to be more of a challenge then go the entire night without ever using beds, not have big brother Mojang step in and impose it on everyone. Some people don't want this feature as much as you do, and they want to skip the night so they can continue their building without being pestered and without having to switch difficulty modes.
edit: I don't believe there are any mods that do this, although I do think it should become a gamerule or world option. The biggest problem with the game is the lack of customizations to the Minecraft worlds, which goes against the concept of it being a sandbox in my opinion.
This serves no other purpose than to cause a minor inconvenience simply because another individual wanted it.
If you want night time to be more of a challenge then go the entire night without ever using beds, not have big brother Mojang step in and impose it on everyone. Some people don't want this feature as much as you do, and they want to skip the night so they can continue their building without being pestered and without having to switch difficulty modes.
The word "mod" is in the thread title...
I tried the mod, but was not attacked while I slept outside (one night).
I'm going to start a new game with cheats enabled so I can accelerate to nightfall in order to test it out more thoroughly.
I tried the mod, but was not attacked while I slept outside (one night).
I'm going to start a new game with cheats enabled so I can accelerate to nightfall in order to test it out more thoroughly.
I understand that, but the way you talked about it you implied that the mechanics of the bed you discussed were some sort of design flaw
the thing is even if it is, it's a very minor one because even if you programmed this into the vanilla experience, not just mods
there's a simple workaround that doesn't even require you use lighting since monsters will not spawn within 24 blocks radius of the player position.
I've suggested introducing a Very Hard mode of survival that disables beds from naturally spawning in villages, so players would need to craft them. This would make getting beds harder early game. Another change they could add is only allow wool to drop if shears are used.
Changes like this would make the bed mechanics far more of a real challenge than what the mod you're after does.
On lower difficulty modes, these changes could be made optional in world settings but be off by default.
Sleeping means one avoids night, when it's dangerous to travel overland. The sleeping feature means one can essentially skip the night, instead of standing around for several minutes waiting for dawn. It's also necessary for avoiding phantoms.
"Essential" is my opinion of this feature. I've not used any Minecraft mods before, and the only one I am eager to use would be this one, which would correct what is, in my view, the biggest flaw in the game. That is my opinion.
As I've stated, I view this feature as essential for immersion reasons. I think night time in the game should be a time of danger, as it is when one is awake. While the game departs from reality in many respects that I can accept without objection, I find it absurd that I can be immune from the dangers of night, in any exposed location, by setting up my bed and having a sleep.
I'm glad to hear that you realize that this is just your opinion. In my opinion being able to sleep through the night is one of the best features of the game and the greatest flaw of the game is that poisoned potatoes cannot be composted. :-)
They can attack, while sleeping in the rare combination of they spawn 24 blocks away, get closer 17 block, and can pathfind to you. I am talking about experience.
Monsaters used to be really ridiculous attracted to wooden doors back in the day.
It's always been such a glaring hole in this game for me - that monsters don't attack when one's sleeping.
If there isn't a monster nearby when one goes to sleep, then one can literally go to sleep anywhere and be safe from getting attacked while one sleeps.
The odds of getting attacked while sleeping in a particular location should be the same as if one was standing in that spot for the duration of the time.
If one has a bed, then night is literally nothing to be afraid of, whereas it should be pretty terrifying, if one isn't in a secure location.
I think that was a feature like this in older versions of the game but it was removed (unless I'm thinking things).
Besides that I have reviewed a mod that has it where you will get attacked by mobs in your sleep but it's for Forge 1.15.2, the mod is called Night Terror. You can find it here: https://www.curseforge.com/minecraft/mc-mods/night-terror
It hasn't updated since and even as I document mods every 1 to 3 days and review new mods daily I haven't seen one like it (to my knowledge) for 1.16 versions yet.
Niche Community Content Finder, Youtuber, Modpack/Map Maker, Duck
Forum Thread Maintainer for APortingCore, Liteloader Download HUB, Asphodel Meadows, Fabric Project, Legacy Fabric/Cursed Fabric, Power API, Rift/Fabric/Forge 1.13 to 1.17.
Wikis I Maintain: https://modwiki.miraheze.org/wiki/User:SuntannedDuck2
I wouldn't think this would make all that much difference unless mobs were actually teleported to your location.
All you'd have to do would be to dig a hole in the nearest hillside (or in the ground), place the bed, block up the hole and go to sleep.
Besides, if you go to bed early enough no monsters will spawn anyway, or were you thinking that would change?
I suppose it would be possible to change it while still allowing the night to pass quickly by adding in a probability that you would only sleep for part of the night and then have monsters spawn close enough that you woke up, like how you can't go to sleep with monsters too close which would force you to dig 16 (?) blocks in/down and hope you weren't close to a cave.
All in all it seems like it would be more of an annoyance than a real danger.
The major difference I can see would be that in the evening you'd have to run far away from any village one was working on securing.
Just testing.
I actually agree it'd make more sense (not just for realism sake, but maybe gameplay) for this to be how it works, but there's likely one or two big two reasons it's not.
The first is resources; I think you'd have to basically calculate all the mob spawning and AI that could/would occur over the time period between the current time you attempt to sleep and dawn (worst case scenario, I admit, as it'd be less if you're awoken early as you'd likely be if it's not in a safe spot). I could be overestimating the hardware demand cost of this, but it could be steep, and Minecraft is unnecessarily heading the ways of needing more and more of this as it is.
The second is, as said above, even if it makes sense for gameplay, you can just get around this by burrowing your bed into the ground, so it probably makes little sense to put the work in to make a feature that many players would probably not receive such a change so well anyway.
This is false. There is no code in Minecraft that explicitly cancels mob attacks as a direct consequence of sleeping in a bed. What you're seeing [that makes you think they cannot attack you] is simply an interaction between 3 different mechanics related to mobs that together generally create conditions where mobs simply can't get close enough to land an attack during the sleep cycle:
1)mobs cannot spawn within 24 blocks of a player
2)you cannot sleep in a bed if there are mobs within an ovoid around the bed that spans 8 blocks horizontally and 5 blocks vertically
3)generally, mobs can detect a player up to 16 blocks away. Several exceptions exist, such as blazes (40 blocks away), ghasts (JE: 64 blocks horizontally and 4 blocks vertically, BE: 28 blocks), and zombies (40 blocks away). Additionally, if you wear a skeleton, zombie, or creeper head you can reduce the player-detection for these mobs by half (from 16 to 8) but this is a java edition exclusive. The wiki doesn't say anything about it for wither skeletons, so I'm assuming this is not similarly the case.
It is fully possible to kite a hostile mob close enough to the bed that it can land one attack, and naturally if your health were already low enough that one attack could kill you then you would definitely die "in your sleep".
Thanks for the link. That mod would appear to achieve the main aim of what I'm looking for.
Comments on the mod from the link and from Planet Minecraft:
.
It looks like the mod linked to above avoids calculating mob movement over the course of the night, and instead has a "RNG roulette", with a "terror_chance" setting:
So, with bad luck with the RNG, a monster will appear.
It's not as good as having mob movement calculated, but it achieves the same basic aim, which is to restore jeopardy and terror to sleeping in an area of unsecured darkness.
It may not be for everyone, but it's good for a mod.
As you say, zombies detect up to 40 blocks away. I think that one would be near-guaranteed to be attacked by a zombie if sleeping in the open was the same as standing still in the open. I just did a quick test, spending the night awake in a single spot, and I attracted a zombie and a baby zombie. Also, If the difficulty is set to Hard, zombies can spawn reinforcements.
If this is the minecraft world you want, then why bother sleeping at all? If it's just to have a monster rich yet phantom-less world, then sleeping once every 3 days will give you that. I honestly fail to see what purpose this bit of 'realism' serves the game, when you can get what you're after simply by not sleeping.
If we wish to be realistic, why doesn't the player suffer fatigue penalties when not sleeping? Why can the player effectively sleep for slightly more than half of the day/night cycle? Why don't villages and players snore while sleeping? Why don't players dream? Why isn't there a unique, dreamtime world, unique from the Overworld, Nether or The End?
I am genuinely failing to see how this feature is in any way 'essential'. What am I missing? Why do you consider mob generation while sleeping to be essential?
Sleeping means one avoids night, when it's dangerous to travel overland. The sleeping feature means one can essentially skip the night, instead of standing around for several minutes waiting for dawn. It's also necessary for avoiding phantoms.
"Essential" is my opinion of this feature. I've not used any Minecraft mods before, and the only one I am eager to use would be this one, which would correct what is, in my view, the biggest flaw in the game. That is my opinion.
As I've stated, I view this feature as essential for immersion reasons. I think night time in the game should be a time of danger, as it is when one is awake. While the game departs from reality in many respects that I can accept without objection, I find it absurd that I can be immune from the dangers of night, in any exposed location, by setting up my bed and having a sleep.
There is now also a gamerule specifically to remove phantoms.
/gamerule doInsomnia false
Just testing.
As was mentioned by one other person in this thread this could be easily circumvented by building the bed while in a hole in the ground that is sealed off from the surface, and since monsters do not spawn within a 24 blocks radius range of the player, you'd be completely safe doing this especially if you double layered the dirt on top in case of endermen.
This serves no other purpose than to cause a minor inconvenience simply because another individual wanted it.
If you want night time to be more of a challenge then go the entire night without ever using beds, not have big brother Mojang step in and impose it on everyone. Some people don't want this feature as much as you do, and they want to skip the night so they can continue their building without being pestered and without having to switch difficulty modes.
edit: I don't believe there are any mods that do this, although I do think it should become a gamerule or world option. The biggest problem with the game is the lack of customizations to the Minecraft worlds, which goes against the concept of it being a sandbox in my opinion.
The word "mod" is in the thread title...
I tried the mod, but was not attacked while I slept outside (one night).
I'm going to start a new game with cheats enabled so I can accelerate to nightfall in order to test it out more thoroughly.
I understand that, but the way you talked about it you implied that the mechanics of the bed you discussed were some sort of design flaw
the thing is even if it is, it's a very minor one because even if you programmed this into the vanilla experience, not just mods
there's a simple workaround that doesn't even require you use lighting since monsters will not spawn within 24 blocks radius of the player position.
I've suggested introducing a Very Hard mode of survival that disables beds from naturally spawning in villages, so players would need to craft them. This would make getting beds harder early game. Another change they could add is only allow wool to drop if shears are used.
Changes like this would make the bed mechanics far more of a real challenge than what the mod you're after does.
On lower difficulty modes, these changes could be made optional in world settings but be off by default.
I'm glad to hear that you realize that this is just your opinion. In my opinion being able to sleep through the night is one of the best features of the game and the greatest flaw of the game is that poisoned potatoes cannot be composted. :-)
They can attack, while sleeping in the rare combination of they spawn 24 blocks away, get closer 17 block, and can pathfind to you. I am talking about experience.
Monsaters used to be really ridiculous attracted to wooden doors back in the day.