This plugin change the mechanics of hunger. What's more, it append extra function to recover hunger.
It is designed for my friend's server at first, to use hunger as stamina, which can work as soul like game.
You can custom its functions by edit config, almost all of its functions can be customed by config.
About Minecraft version:
It is based on spigotAPI 1.16.5, and I only tested it on 1.18.2.
Generally, it can work on any version over 1.16.5.
If you find that there's one version, whice is over 1.16.5, can not work, please tell me.
About copyright:
It is an open source plugin, which follow MIT.
Open the github page, you can copy it and do anything on it, except to against the protocol.
Here is the default config file
(Unfortunately, plugin's default config is Chinese language, but here is the English version I provided)
Code (YAML):
# [0-20]
hungerMax
: 19
# [0-20] (Tips: It dosen't affect the saturation)
hungerMin
: 1
# The increasing hunger every tick, which is added by my plugin [0-∞]
hungerTickRecovery
: 0.2
# When there's exhaustion happen, it will allow for a cooldown, and this it the cooldown time (Unit: Seconds) [It should be an integer multiple of 0.05]
hungerCostCooldown
: 3
# When it is false, saturation will be same as hunger.
# When it is true, hungerTickRecovery will work on saturation if the hunger get its max.
enableSaturation
: false
# Allow eating to recover hunger
# Tips: This option will not affect saturation if you set enableSaturation true
enableFoodRecovery
: false
# The hunger cost of each event
# It only work on the cost that cause by exhaustion
hungerCost :
jumpWalk
: 0.25
jumpSprint
: 1.0
blockMined
: 0
damaged
: 0
attack
: 0
swim
: 0.08
walkUnderwater
: 0.01
# Every tick
walkOnWater
: 0.01
# Every tick
sprint
: 0.05
# Every tick
crouch
: 0
# Every tick
walk
: 0
# Every tick
regen
: 5
# Regen one health
hungerEffect
: 0.05
# Every level every tick
enableUnknown
: false
# Allow the exhaustion from unknown source