[MC-393] Starvation prevents sleeping in bed on peaceful. Created: 25/Oct/12  Updated: 14/Jul/14  Resolved: 14/Jul/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.7, Snapshot 13w02b, Snapshot 13w03a, Snapshot 13w10b, Minecraft 1.5, Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w38c, Minecraft 13w39b, Minecraft 13w41a, Minecraft 13w41b, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w28a
Fix Version/s: Minecraft 14w29a

Type: Bug
Reporter: Geoffrey Hyde Assignee: Mog (Ryan Holtz)
Resolution: Fixed Votes: 8
Labels: food

Issue Links:
Duplicate
is duplicated by MC-8028 Starving kicks you out of the bed whe... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Survival

 Description   

What I expected to happen was...:
That I could sleep in a bed on peaceful mode if the food bar is empty.

What actually happened was...:
Damage ticks from starvation prevented this.

Steps to Reproduce:
1. Play Survival on any game mode that drains the food bar until it's empty, example "easy" and then switch to Peaceful mode once drained and starving to death.
2. Collect resources for and make a bed.
3. Attempt to sleep in it.

If the player is starving to death and switches to peaceful mode, the damage ticks from starvation should be stopped because they are simply just annoying and prevent sleeping in a bed while the player is trying to find a food source which isn't always easy to come by. This should not affect the ability of regenerating hearts in peaceful mode. There are other problems with the food system which I won't get into detail about except to say that they should be dynamic, and not biome specific, as sometimes food is very hard to find anywhere on a map, for example islands in ocean biomes.



 Comments   
Comment by Jeuv [ 09/Jul/14 ]

Still in 14w28a.

Comment by [Mod] Ezekiel (ezfe) [ 18/May/14 ]

TheMeaningOfBlah I don't know what your doing, but its definitely still reproducible.

Comment by Dlawso the Really Lucky Rabbit [ 18/May/14 ]

Cannot reproduce in 1.7.9

Comment by Austin [ 09/Dec/13 ]

Well, what do you expect? You're starving, so you can't even sleep!

Comment by Maxarias [ 21/Nov/13 ]

Hello, this appears to still be happening. I usually play on easy with my Fiance when he is home from work, so I switched to peaceful this morning (to not waste my apples), and was utterly confused about this. (Shortly after the video, enough wheat grew I was able to make some bread, but I thought that this was quite interesting)

I am playing vanilla, unmodded 1.7.2

http://www.youtube.com/watch?v=nJpzRmbZ97Q&feature=youtu.be

Comment by Tails [ 14/Jan/13 ]

Confirmed in 13w02b.

Comment by Geoffrey Hyde [ 28/Dec/12 ]

@Nathan2055: I'm not discussing the fact that we're not required to use ocean worlds. The mere fact that they exist and that there is not a viable means to survive on them mean they probably deserve their own issue report anyway.

Besides which, ocean worlds are not the only spawns which could cause this problem. Any world seed that fails to generate both trees and food sufficiently close by to the player could cause this problem. I have encountered a few vanilla world starts where the player is placed far away from trees or starting resources, usually on the edge of a desert biome.

The ocean spawn issue itself has existed ever since animal spawns were changed to be biome specific and all animal spawn was removed from oceans. It should be easier for players to survive in an ocean world start, and there should be ocean content added which helps the player deal with a lack of trees and food.

If Mojang would at least address the core gameplay issues here with the world starts then perhaps I would play vanilla Minecraft more often, right now the issues with getting a random ocean or resource-starved spawn point make it very difficult to play vanilla Minecraft because what I look for in a vanilla start is to find needed resources quickly, I don't want to waste time having to look for my first tree on peaceful mode or resorting to cheaty methods to find where one might be.

Comment by Nathan2055 [ 28/Dec/12 ]

This should be fixed by disabling hunger damage while asleep and by having hunger regenerate automatically in peaceful.

EDIT: Also, you aren't required to use an ocean spawn world. You can easily delete worlds until you find one with a good spawn.

Comment by Geoffrey Hyde [ 06/Nov/12 ]

I have always thought that the whole point of survival was to be able to stay in one game mode and not have to rely on changing game modes. Currently this is not realistically possible due mainly to the fact that the Minecraft engine has it's gameplay mechanics geared primarily towards starts where the player can easily obtain both wood and basic starting equipment. This isn't so easy to do in ocean biomes especially given that the biome itself has no animal spawns whatsoever and that obtaining anything other than a slow starting wheat farm takes ages to do and requires that the player not sprint which also isn't easy to do given that sprinting is so easy to do accidentally.

While one could theoretically kill zombie spawns for potato or carrot drops and eat any rotting flesh that drops, this also can be time-consuming to do. There is a similar problem with spider string, because as often as not, they will drop 0 string. If a player really needs string for a fishing rod, which only needs 2 string the chance of obtaining one string from spiders killed by the player should be raised to where they don't have to kill a lot of spiders for poor randomly generated returns on kills.

It also seems weird that spider dungeons will generate a lot more string just because the chance of getting a spider to kill is insanely higher versus the chance enough of them will randomly spawn on an island large enough for spiders to spawn on along with other hostile mobs, and drop string.

I digress, the original issue I filed is a significant gameplay issue and one which needs addressing instead of being left by the wayside. I'm just not sure how much longer I'm willing to put up with having to walk around like a crazy Minecrafter hurting himself every time he takes a tick of starvation damage while staying fully healed on peaceful difficulty.

Comment by Brandon Bourgeois [ 06/Nov/12 ]

I can confirm this, a very annoying thing. Not sure if it is exactly a bug, but still something that could be improved.

Comment by Geoffrey Hyde [ 02/Nov/12 ]

Not very helpful if you happen to be in one of the few places without readily available food, for example a desert or ocean biome. Swimming takes hours to get anywhere, I would just like to be able to reset the night if I'm not using cheats and am trying to survey a survival map for potential spots after failing to obtain food via a normal game difficulty start on a random seed.

Comment by [Mod] Ezekiel (ezfe) [ 02/Nov/12 ]

A simple fix is to regenerate FOOD in peaceful.

Generated at Sun Jan 12 11:50:52 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.