FoodHealz
[1.3.2-R2.0] FoodHealz v5.0
Going to discontinue this and give the source to any good dev who wants it. The source is messy due to all the requests, but you can get the basic idea. I get to delete this plugin soon! Thank you Bukkit for finally adding a PlayerItemConsumeEvent, took your time though. I've seen many plugins try to achieve this, but none did it how I wanted it to be done.
Features:
- Once a player has eaten the food, the regain instant health.
- Sets the hunger bar to be stuck at the level set in the config. (Used if "Keep Hunger" is false, see below)
- Config for using the hunger bar, whilst still directly healing the health.
- Config for a multiplier on hunger and health.
- Config to stop health regeneration from saturation (full hunger bar).
- Config to allow spout users to graphically have their hunger bar disabled and the armour bar put in it's place.
- Config for a repeated Checkup with a configurable delay to stop other plugins breaking this one.
- Drag and drop (With reload).
Permissions:
- foodhealz.heal - If a player has this they will heal from eating.
Change Log:
v5.0
- Removed the need to update the clients hunger bar, as it is now implemented in 1.3.2R-0.2.
v4.0:
- Added a permission that allows people to heal.
v3.0:
- Changed the format of the config.yml!!!! Please check yours is correct!
- Added a repeated Checkup to make sure no other plugins mess this one up.
- Added a config for Checkup, with time in ticks for the delay between repeats.
- Added a Regeneration and Hunger multiplier.
v2.0:
- Added a config.yml
- Added a config for using the hunger bar, whilst still directly healing the health.
- Added a config to stop health regeneration from saturation (full hunger bar).
- Added a config to allow spout users to graphically have their hunger bar disabled and the armour bar put in it's place.
- Added a config to set the default hunger level (Used if "Keep Hunger" is false). Do not set higher than 7!
v1.0:
- Once a player has eaten the food, the regain instant health.
- Disables the hunger bar (Constant set to 7). (As a result players have a constant sprint)
- Drag and drop (With reload).
Todo:
- Any suggestions?
Known bugs:
- The max a player can heal from food is only ever less than or equal to how much hunger they are off a full bar times you heal multiplier. (Guess how the code works yet other devs?)
- Full hunger bared player can not eat. (Client side, nothing I can do)
- If you find any please report them (Include all the usual information).
Disclaimer:
I have not used any ideas or code off other plugins, all the code is made by me and all feature thought up of by me. Please do not copy/steal ideas or code off of me. I can not be held responsible for this plugin causing errors or breaking anything, you are responsible for the safe use of this plugin. Plugin provided for non profitable use only, please contact me if you wish to use this plugin for commercial use. Any questions, please contact me.
Donations:
If you like the plugin, please consider donating to my community (The Derplin Network): chaosjmaker@gmail.com On PayPal. In the message please say rrama plugins or something indicating that you are donating because of me. This will inspire me to make more plugins.
-
View User Profile
-
Send Message
Posted Sep 5, 2012that would be acceptable to me :D maybe have a config file setting? ie: divide health regained by: 2 ; default: 1, automatically rounds to the nearest integer
-
View User Profile
-
Send Message
Posted Sep 5, 2012@warboy1982
I can do a fraction of the current values and to ceil, floor (round up or down) or round the value. But, that is it. E.G. 1/2 & floor of 3 = 1. I can not set individual values for each food type (might want to look into another plugin like this but is stuck with the instant eat feature).
-
View User Profile
-
Send Message
Posted Sep 3, 2012first off, great plugin. secondly, could you add an option to configure how much health is restored on eating? basically i'd want to set the health regained to about 50% of what it is now.
-
View User Profile
-
Send Message
Posted Aug 30, 2012@blindprophet1123
Sorry for the late reply, thought I was meant to be emailed on comments. Like in the olden times where there was no hunger bar. The Hunger bar is still graphically there, however it doesn't do anything and food heals directly to the health bar.
@xclucky
Again, sorry for the late reply. I shall add a config for this in a minute. EDIT: Done.
-
View User Profile
-
Send Message
Posted Aug 21, 2012Quick question. Would you be willing to add a few configurable features into your plugin? I have tried asking other developers of plugins similar to this one, all of them turned down my idea. I can nearly guarentee there is nothing anywhere on dev.bukkit for this.
The features i am needing follow:
Work is slow for me and after bills I do not have very much money, hence why I am so desperate to find a plugin such as this, however, if money will help my chances, i can donate a small amount of about $10-15 to help out your project. I look forward to your reply.
-
View User Profile
-
Send Message
Posted Aug 7, 2012when you say "disables hunger bar" do you mean like hunger is always same and food fills up the health bar instead of hunger, if so that would be amazing and ill definantly download it. (once its in 1.3.1 though)