Mineuniverse
Log in Register
Plugins

kFood

Abolishes minecraft's new food system and replaces it with something better; something older.
by _ForgeUser19827384
Download Claim this project
490 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Fixes Mechanics Miscellaneous
 
kFood logo
 
kFood is a plugin that abolishes minecraft's new food system and replaces it with a customizable system that resembles the way food used to work.

Why?
I made this plugin to get myself familliar with bukkit again, it has been a loooonng while since I coded with it. Oh and by the way, I just really didn't like the food system :)

Features
  • Ensure players' foodLevels stay static.
  • Give individual players different foodLevels.
  • Make eating food increase health instead of the foodLevel.
  • Set the halfHeartsToAdd for each food.
  • Configure some effects when eated.
  • Configure new (instant) foods.
  • Set which foods can be eaten instantly.
  • Set which instantFoods should return a bowl.

itemNames
There are many plugins that reintroduce minecraft's old way of handling food. Most of them look to the material of the item to know how much food to apply; here kFood differs.

kFood's unique feature is to look at item names to identify which food it is. This has a few upsides:

  • More customization!
  • (better) support for items from other plugins.
  • (better) support for mods.
  • The ability to give different kinds of fish different amounts of halfHeartsToHeal.

To get every item's name kFood has to rely on NMS code. It uses reflection for this so it shouldn't break on a update. In fact, when a new food is added to the game you can add it to the config, no coding required.
The downside: if any major changes happen to bukkit's CraftItemStack class or NMS' ItemStack class this plugin will break and need updating.

anvilItems
The previous feature raises some questions regarding anvils. What happens when a player takes a piece of Rotten Flash and renames it to Golden Carrot?

On default if an anvilItem is eaten kFood will first check if an anvil name is specifically set. If not kFood will (for now) instead check against the original item's name.

foodLevels
Even though this plugin renders the foodbar practically useless, the effects of it do still remain. This allows for some interesting features. If you set your foodLevel lower than 3 for instance, players cannot run anymore. The way the client works, it won't even try to send a sprinting packet. If a player has a foodLevel higher than 17 it will slowly regenerate hearts.

kFood stores the foodLevel of all players in the main scoreboard under the "food" objective. Having a score_food of 0 (default) means that you have the default-food. This way you can use commandblocks or other plugins to give individual players different foodlevels, for instance to make a certain area where players can or cannot run.

0.7.5
MC 1.11, 1.12
Release 2017-07-13 Get

You Might Also Like

MobHealth
Simple plugin to let you know the damage you just caused to a mob, and how much health it has left.
989,881
Player Heads
Lop off Player and all Mob Heads with configurable drop rates + pvp-farming nerf, includes detailed commands and permissions
979,351
Advanced Item Effects
Adds custom effects to any item including potion effects.
97,290
VoxelMore
"Sharing is caring."
9,999
SunSteel
A Golden Item Enhancement Plugin
9,880
Sneaker
Hide name tags above players' heads.
9,865