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: ?)
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)
Distilled-water bucket (which's supposed to be boiled water bucket, but then it'd be molten iron -.-)
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 biome-dependent drinking effect
Make thirst deplete faster in desert biome
Add fruit juice
Lots of tweaking
Add MC Forge compatibility
Add SMP support
Bugs to fix
Distilled-water bucket returns bottle after use
Thanks to Binkan Salaryman for the new textures on canteen and thirst bar
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
Fixed config malfunction
Fixed Canteen crash on use
Moved thirst bar to right above hunger bar, air bar during diving moved above thirst bar
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)
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
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
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:
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: