Thirst
Thirst
Thirst
Do you want to add a thirst mechanic to your server? Look no more, because this is the plugin for you. This simple plugin will give you great modulability in terms of how it works. Please see the configuration page for more info on what you can change, as as always, feel free to suggest a feature!
Links
Setup
- Drag and drop into the 'plugins' folder.
- Give players the 'thirst.thirst' permission in your favorite permissions manager.
Commands
- /thirst
- Simply displays the users thirst in the format you have selected in the configuration file.
- /thirstadmin <set/get> <player> <amount>
- Either sets a valid player's thirst level or displays a player's thirst level.
Permissions
- thirst.thirst
- Gives the player the thirst mechanic. It is not recommended that administrators are given this permission, as it may present them with the task of drinking water to survive.
- thirst.fillwater.rain
- Gives the player the ability to fill their water bottles in the rain. NOTE: This will only work in biomes with rain. It will not work in snowy / desert biomes.
- thirst.admin (default op)
- Gives the player access to the /thistadmin command.
Up & Coming Features
- Rain Buckets
- Have the ability to fill buckets in the rain, as well as waterbottles.
- Toggle Base Drinking
- Have the ability to toggle whether or not players can drink water without a container.
@ivankrad
Darknavi,
As I try to set a good example for the kids on my survival server, I'm rarely in creative mode, so I can tell you that I am sure that my tests were in survival mode. I can tell you that I tested the plugin with the milk bucket AND water bottle turned on, and with ONLY the water bottle turned on. I also did as you suggested, and tried waiting a few seconds after drinking. Out of approximately 1 dozen attempts, only once did it register correctly, telling me I had received 50 thirst points, putting me at 135. In addition, I could not left or right click in the water with an empty hand to drink directly.
As my computer is the fastest in the house, it typically runs the server on it and when I play, I play on it to. So it is both server and client. If anything, I would think that would reduce the possibilites of lag. So unfortunately I am at a loss. I will continue to try any further versions you come out with. I still feel that yours holds the most promise for my server. -T
@handicraftsman
Are there any errors?
its not creating a config folder :/
@Torondork
Try these steps for me if you could:
Another note: In order to quench your thirst in the water by clicking, sometimes you have to select a block (like the dirt block underwater) in order to register the click. I am still working on a better way to detect this.
@ivankrad
Good morning. Yes, I tested it last night and despite being told I was thirsty, and having the water bottle "on" and set to 50 thirst points, when I hit 71 thirst and my "mouth is dry" warning went off, I drank a bottle of water to no effect. My thirst was at 70 right after that. It is the v1.1. Also I could not right click on water to "quench my thirst". -T
This is my config file:
@ivankrad
I'm rather certain because I had downloaded that version after asking about the drinking of milk and water bottles, etc. from our earlier conversation. I will delete the file I have along with the plugin folder and config and ensure a good reload tonight and will try once more. Perhaps another plugin is interfering? I will check the server log and see if there are any obvious "error" lines if it doesn't work. - T
@Torondork
Was this using the latest version (v1.1)?
@Pippiter69
I can't actually use the bubbles. While I can adjust the level of user's air, the bubbles wont show up on the vanilla Minecraft client unless the user is underwater.
While i certainly have no idea what your schedule is and don't want to rush greatness... have you had any luck with the issues I mentioned back on Aug. 30? I definitely want to impliment this on my server, but have only been self testing it on me via permissions so as not to 'grief' my players unintentionally. Thanks for continued good work! -T
Amazing plugin
Can you do this with oxygen bubbles instead? (Drowning would stay the same but with a text warning instead of the bubbles for the warning, it would say "Get to the surface quick!" in blue text.
Well... I downloaded the new file. Edited the config to suit my taste, including message content and color, and what could or couldn't be drunk for thirst quenching. Unfortunately when I tested it, the water bottles did not work (they were supposed to restore 50), and the water buckets did (they were supposed to be toggled off). I confess I did not test milk which was toggled on for 100 thirst points. In addition, I had issues with reloading my plugins resulting in me losing the thirst feature. Finally as an aside. Is there any way, if you are allowing bucket of water drinking, to have the bucket empty without placing water? Otherwise you place the water, get quenched and then scoop the water back up. Nothing is used up. Sorry so long. Just thought you'd like to know. -T
Enyone good at making plugins cas can you make an animal plugin?Or animals eat and drink ? if posible thanks :)
@ivankrad
Thanks for replying :)
Can't wait to try the update tonight. But I have more questions/comments (hope you don't mind):
If you have water in a bottle and drink it while in a water biome, will it still register as salt water, or is that only if it's not in a container/from the hand?
Similarly, if you have an empty glass bottle and fill it from an ocean biome and then drink it, i presume it will come back as "fresh" (unless...see previous question).
Since water bottles/buckets won't refill in snowy biomes, you could look into adding "eating snowballs" to the list. Of course the throwing snowball mechanic might make that impossible.
Thanks again! -T
New version approved! Download v1.1 now!
@pingoogoogoo
In the newest version, you can! :D
Can you make it so you can drink milk? :)
@Torondork
(: Thanks!
To address the config differing from yours: I am pretty new to Bukkit Dev, so I didn't know that every file needs to be confirmed by the staff. Version 1.1 has been uploaded and it awaiting confirmation. That includes the bucket drinking features. (Sorry)
As for the biome check, it should be in place in version 1.0, if it isn't I can recheck it. Press F3 to check your biome and make sure you're actually in the 'Ocean' biome, as some times the banks of the oceans are what ever biome the land mass is.
Also, I can add a toggle option for click-drinking. Thanks for the suggestion! I'll look to add it as soon as I can. (: Thanks for being so suggestive / responsive.
ivankrad,
I was testing out your plugin tonight and noticed several things. First, that neither water bottles nor milk buckets appear to quench thirst. Second that the config file shown on this page is different from the config file generated when I ran the plugin (specifically the config for allowing bottles, milk, and buckets to quench and by how much). Finally, I noted that to quench thirst, one need only use a hand and right click on water. Can you make that configurable? Also, can you add a biome check for beach when it comes to saltwater? (or does it and I just haven't tested it enough? All in all, still liking the plugin :-)
@ultimateowner56
Unfortunately, without a custom client (example: Spout) air bubbles will only appear if a player is deemed to be 'underwater' by the client.
A suggestion is to make it so the thirst is displayed with the oxygen bubbles gui. Players will of course still drown at the same time, they just won't have a gui to show it. I think that is the best way to do it.