Ok, so this is my first mod posted in the MCForums. I have made a few small mods that add new blocks to the game, but that's become boring and I decided to take on something challenging. When I first thought of the idea of a thirst bar, I hadn't search in the forums about people's views and ideas on actually implementing a thirst bar. After some research it seems that many think the hunger bar is already enough annoyance to the creative gameplay of minecraft, that the addition of a thirst bar will only favor those hardcore survivors out there. Anyway, as long as this mod can make someone happy, then I'm happy :biggrin.gif: , because I can feel that not many are going to like this mod (or is it just me being pessimistic :huh.gif: ?)
About
This mod adds a thirst bar above your health bar. The thirst bar depletes at a rate about half as fast as hunger. Just like the hunger bar, you slowly lose health when your thirst bar has completely depleted.
Many tweaking and modifications will be done on the rate of dehydration, ways of rehydration and the amount of water each way of rehydration gives.
Video on outdated version
Current ways of rehydration includes drinking:
water bottle----------------3 water droplets
milk bucket-----------------4 water droplets
any kind of potion--------1.5 water droplets
mushroom stew---------------4 water droplets
distilled water-------------3 water droplets
distilled-water bucket------3 water droplets
canteen---------------------1 water droplet per use
directly from water source--1 water droplet per regular interval (hold shift in water source)
Canteen
Distilled water
or
Distilled-water bucket (which's supposed to be boiled water bucket, but then it'd be molten iron -.-)
To Do
Add new ways of rehydration
Adjust the effect of each method of rehydration
Figure out and fix the checksum in config (?) Water needs to be boiled to advoid poisoning Add risk of poisoning if unboiled water is drunk Add waterskin/canteen Make water directly drinkable(by pressing shift in water) Move the bar back to the right (as it now overlaps with armor bar) Make independent texture file
Add filter
Add biome-dependent drinking effect
Make thirst deplete faster in desert biome
Add fruit juice
Lots of tweaking
Add MC Forge compatibility
Add SMP support
Banner :smile.gif:
Bugs to fix
Distilled-water bucket returns bottle after use
Thanks to Binkan Salaryman for the new textures on canteen and thirst bar
v0.3
Added risk of water poisoning (30% chance) when drinking unboiled water
Added distilled water
Added distilled-water bucket
Thirst bar now independent from gui (play with your favourite texture pack :cool.gif: )
Added option to turn off water poisoning in config
v0.2.2
Fixed config malfunction
v0.2.1
Fixed Canteen crash on use
v0.2
Moved thirst bar to right above hunger bar, air bar during diving moved above thirst bar
Added canteen
Disabled drinking when thirst bar is full (except for potions)
Can now drink directly from water block (sneak/shift in water refills thirst bar slowly)
v0.15
Changed the rehydration effect of each method
Tweaked the rate of dehydration to a little bit faster than hunger, so the ratio should be (hopefully) more realistic
Thirst bar now depletes from center of screen
Installation
BACKUP YOUR MINECRAFT.JAR--I am NOT responsible for any damage to your saves Requires Modloader v1.1
Copy all files EXCEPT the .cfg over to minecraft.jar
Copy the .cfg to your /.minecraft/config
This mod modifies the following classes, i.e. it will conflict with any mods modifying these classes
A suggestion, you could tweak the food bar and make it run out slower, because we can last a lot longer without food than we can without water.
Don't ask me how long though... :huh.gif:
A suggestion, you could tweak the food bar and make it run out slower, because we can last a lot longer without food than we can without water.
Don't ask me how long though... :huh.gif:
its around 3 days without water and around a month without food
although you pretty much cease to function before that long XD
Rollback Post to RevisionRollBack
may God have mercy on my enemies, because I won't~General George Patton
A suggestion, you could tweak the food bar and make it run out slower, because we can last a lot longer without food than we can without water.
Don't ask me how long though... :huh.gif:
erm...that's a good idea but how the food bar works is designed by notch and I dun really want this mod to modify any gameplay other than thirst-related ones, for the time being at least :wink.gif:
Thank you, Thank you Thank you, i have wanted this mod forever now. like we have bottled water but no dehydration mechanic in the game IT MAKES NO SENSE. Again Thank you.
Add a Canteen, wich you can craft with lether in the form of a chest or cauldron, you fill it up in the water and it has a usage limit, like 5 before emptying
Mushroom Stew should only remove a small amount of thirst, because its still food
I dont know if you can but make it drinking directly from the water, otherwise this mod can be a death sentence if you take too long to find sand, iron or mushrooms
You could check the survivalist mod (outdated, several versions) wich added a thirst bar aswell and get inspirations in the mechanics and the canteen.
Thx for the feedback!! I've been checking back on this post for the last few days and thought this had failed miserably with no replies :mellow.gif:
I've checked out the survivalism mod and the canteen/waterskin seems like a good idea as water bottles cant be stacked (that is, unless all kinds of potions are made stackable)
I've thought of drinking directly from water before, and actually its not that hard to implement, according to my currently understanding of the code.
In the mean time I'm working hard on my GCE exams (yes, i'm still studying) so I wont be working on this mod until next week. but when the exams are finished I'll definitely be working on updates again :smile.gif:
This is awesome. I have been looking for something like this for a while. It's crazy that milk and water aren't already drinkable. You are a legend.
I really hope you keep working on it.
There are two or three major incompatibilities I see though:
l.class is used by GUI-API.
qd.class is used by MoreHealth
and most importantly:
vi.class is used by Forge API.
If you keep working on it, I'd love to see a patch for either of the API's though.
Happy modding, and awesome job.
Thanks for all the replies!
Exam finishing in/holidays coming in/update rolling out in: 1 week!! :laugh.gif:
I apologize for this relatively long inactivity of this mod, but I'll make sure it will be worth the wait :smile.gif:
There's one thing I forgot to mention about implementing thirst: you can always carry 2 buckets of water with you and when on the verge of dying from thirst, you can just dig a 2x2, make an infinite spring and drink until you die from water intoxication :cool.gif:
In this case this mod would be meaningless, and this is one reason why I want to add risk of water poisoning, so that drinking directly from water wouldnt be a first priority
TBH I dont know anyone who boils their water, wouldn't it just make it taste bad? but seriously just forget about having to boil water, I would prefer room temperature water than boiled IRL, but, that's just me if you want to make so that you HAVE to boil water then go for it, I'm not in charge of what you do
But now i could use your help. I cant seem to make the canteen work properly (dont worry, i may not be a mod creator, but im pretty got at installing them! :wink.gif:, so no worries about Meta-Inf or modloader). Whenever i drink from the canteen or try to fill it up, the game crashes with no error mesages. i thought it might be a class conflict, but reinstalling all the classes doesnt fixes it.
Dang it. I got MLprop messed up again. Thought I fixed it before releasing but actually led to more bugs which I didn't realize.
I updated a fix for v0.2 but now changing the config won't change anything.
MLprop is always the most puzzling thing for me, working on it now.
EDIT: Fixed now :biggrin.gif:
v0.3 update + fix
NEW POST HERE
Some kind of Foreword
About
Many tweaking and modifications will be done on the rate of dehydration, ways of rehydration and the amount of water each way of rehydration gives.
Video on outdated version
Distilled water
or
Distilled-water bucket (which's supposed to be boiled water bucket, but then it'd be molten iron -.-)
Adjust the effect of each method of rehydration
Figure out and fix the checksum in config (?)
Water needs to be boiled to advoid poisoningAdd risk of poisoning if unboiled water is drunkAdd waterskin/canteenMake water directly drinkable(by pressing shift in water)Move the bar back to the right (as it now overlaps with armor bar)Make independent texture fileAdd filter
Add biome-dependent drinking effect
Make thirst deplete faster in desert biome
Add fruit juice
Lots of tweaking
Add MC Forge compatibility
Add SMP support
Banner :smile.gif:
Bugs to fix
Thanks to Binkan Salaryman for the new textures on canteen and thirst bar
Download
(v0.3) mediafire
Water bucket bug fix (temporary): Link
Put the mod_ThirstMod.class in your minecraft.jar, overwriting the old one
Older versions
(v0.15) Mediafire
Changelog
v0.3
Added risk of water poisoning (30% chance) when drinking unboiled water
Added distilled water
Added distilled-water bucket
Thirst bar now independent from gui (play with your favourite texture pack :cool.gif: )
Added option to turn off water poisoning in config
v0.2.2
Fixed config malfunction
v0.2.1
Fixed Canteen crash on use
v0.2
Moved thirst bar to right above hunger bar, air bar during diving moved above thirst bar
Added canteen
Disabled drinking when thirst bar is full (except for potions)
Can now drink directly from water block (sneak/shift in water refills thirst bar slowly)
v0.15
Changed the rehydration effect of each method
Tweaked the rate of dehydration to a little bit faster than hunger, so the ratio should be (hopefully) more realistic
Thirst bar now depletes from center of screen
Installation
Requires Modloader v1.1
Copy all files EXCEPT the .cfg over to minecraft.jar
Copy the .cfg to your /.minecraft/config
This mod modifies the following classes, i.e. it will conflict with any mods modifying these classes
bl.class
ed.class
ll.class
og.class
xb.class
I need your help
Banner
This mod is under heavy development and I welcome any suggestions :biggrin.gif:
and also tell me any bugs you find
also, me and my friend are putting together an apocalyptic modpack and I was wondering whether I could use your mod in it.
Thanks for your time!
Don't ask me how long though... :huh.gif:
its around 3 days without water and around a month without food
although you pretty much cease to function before that long XD
I would like to see this! ^^
Sure (as long as I'm given credits for it )
erm...that's a good idea but how the food bar works is designed by notch and I dun really want this mod to modify any gameplay other than thirst-related ones, for the time being at least :wink.gif:
Thx for the feedback!! I've been checking back on this post for the last few days and thought this had failed miserably with no replies :mellow.gif:
I've checked out the survivalism mod and the canteen/waterskin seems like a good idea as water bottles cant be stacked (that is, unless all kinds of potions are made stackable)
I've thought of drinking directly from water before, and actually its not that hard to implement, according to my currently understanding of the code.
In the mean time I'm working hard on my GCE exams (yes, i'm still studying) so I wont be working on this mod until next week. but when the exams are finished I'll definitely be working on updates again :smile.gif:
I really hope you keep working on it.
There are two or three major incompatibilities I see though:
l.class is used by GUI-API.
qd.class is used by MoreHealth
and most importantly:
vi.class is used by Forge API.
If you keep working on it, I'd love to see a patch for either of the API's though.
Happy modding, and awesome job.
Exam finishing in/holidays coming in/update rolling out in: 1 week!! :laugh.gif:
I apologize for this relatively long inactivity of this mod, but I'll make sure it will be worth the wait :smile.gif:
There's one thing I forgot to mention about implementing thirst: you can always carry 2 buckets of water with you and when on the verge of dying from thirst, you can just dig a 2x2, make an infinite spring and drink until you die from water intoxication :cool.gif:
In this case this mod would be meaningless, and this is one reason why I want to add risk of water poisoning, so that drinking directly from water wouldnt be a first priority
...or maybe just use finite liquid :tongue.gif:
Thanks so much!
Maybe unboiled water could have the Food Poisoning effect like rotten flesh or raw chicken?
Im glad that you like it. It's not yet SMP compatible, but will be :smile.gif: after I've finished with the major features of the mod
And yes, that's what I want to do with unboiled water, but I'm still not sure if players can survive even for the first day with this... :huh.gif:
and tmr is the last day of exam :laugh.gif:
No error report = no help, simple
will continue to cross out more in the to-do list
為MC增光lol
Dang it. I got MLprop messed up again. Thought I fixed it before releasing but actually led to more bugs which I didn't realize.
I updated a fix for v0.2 but now changing the config won't change anything.
MLprop is always the most puzzling thing for me, working on it now.
EDIT: Fixed now :biggrin.gif: