vHunger
Have you ever wanted to customize your server's hunger properties, without having to install complicated mods or builds like spigot? Do you want to be able to punish your players for ruining their hunger bar, or even disable hunger? Well, now you can.
Features
- Configure effects to give to players at certain hunger levels. You can edit the duration, strength, and the potion effect.
- Also, there is custom hunger scaling in a variety of categories, such as sprinting and flying hunger.
- Per-World Support for all potion effects and scaling.
- Variety of commands.
- Disable or enable hunger.
- Auto-Updater feature! (Can be disabled in config file by setting 'check-for-updates' to false)
Commands
hunger.admin encompasses all of the following permissions and is by default, given to operators.
Command | Permission |
---|---|
/hunger help | No attached permission |
/hunger [player] | To view your own hunger, the permission is hunger.check - To view other player's hunger, the permission required is hunger.check.others |
/hunger nourish [player] | To nourish yourself, you need hunger.nourish - To nourish other players, you need hunger.nourish.others |
/hunger set [player] <integer> | Set your own or another player's hunger with hunger.set to set your own and hunger.set.others to set other players hunger levels. |
/hunger config <save-reload> | Save or reload the config with hunger.config.save and hunger.config.reload |
N/A | To not experience a decay in food level, you can have the permission hunger.nohunger |
N/A | To not be affected by potion effects at hunger levels, you can be exempt with hunger.effects.exempt |
N/A | To receive information about when updates are available (if enabled in config), you need the permission hunger.update. |
Installation
- Download the latest .jar file.
- Stop your server.
- Put the vHunger.jar file into your /plugins folder.
- Start your server, you should be good to go!
Donate
I've spent many hours fleshing out the features of this plugin, making it easy to use as well as implementing crazy features. Support me in my goal to add more features to come buy purchasing a snack for me :). If you can't spare $1, please give feedback in the comments.
Hey could you quickly mock up a version to make it possible to change how fast hunger depletes when standing still & jumping (unless "flying" is what "jumping" is) also?
@Pandamatak
That's a cool idea! I will definitely work on that for a new release.
In the config, under depletion rates, I see:
Would it be possible to have a "healing" variable that allows you to change the depletion rate if a person is regenerating health?
In addition, I think it would be a useful if we had control over at what hunger levels players are allowed to sprint or regenerate health automatically.
Hi @feez2000
I am unsure what you are speaking of. Can you elaborate?
Can it fix the 1.7 depleted hunger ?
Hi @Anewil
There is no potion effect called slowness. You might be looking for slow. Please refer to the list of effects here.
http://screenshooter.net/0417890/fdayvmy i get this error when i try change effect for slowness
@OriginalMadman
I've been working on coding the scaled hunger depletion, it's rather difficult.
As to your second request, I will look into it because that seems to me a useful tool / idea.
@UnUltima23
I second this request for hunger depletion speed. Also, setting min/max/default hunger and health levels on respawning would be awesome. Can you also make config to enable/disable in worlds?
@UnUltima23
I'll look into it. It seems like a good idea to me :)
Could you also think of adding custom scale to how long it takes for your hunger to deplete? So you can make it deplete faster or vis versa?
@saki2fifty
To your first comment: I don't see why not. As long as some important features don't break I can compile it to include 1.5.2.
To your second comment: That is an interesting suggestion; I will look into implementing it.
Also possibly adding other hunger features such as something that scales the rate at which food affects hunger? So if a food naturally gives you 4 bars, but you've set the scaleFood to 2, then it restores only half of what it normally gives you.
Exactly what im looking for!
Any thoughts about compiling a 1.5.2 version of this?