A very small and simple as can be plugin that automatically makes players eat cooked and crafted food from their inventories.
The list of valid items is as follows:
- Dried kelp
- Beetroot
- Potatoes
- Cookies
- Melon slices
- Sweet berries
- Glow berries
- Carrots
- Apples
- Baked potatoes
- Bread
- Cooked cod
- Cooked rabbit
- Beetroot soup
- Cooked chicken
- Cooked mutton
- Cooked salmon
- Golden carrots
- Mushroom stew
- Cooked porkchop
- Pumpkin pie
- Cooked beef
- Rabbit stew
BetterFood also:
- Picks food that fits how hungry you are instead of always eating the most filling food first. Selection rules
- Skips renamed, enchanted or otherwise customized food, so custom items from other plugins are left alone. Protected items
- Gives the bowl back after soups and stews. Bowl foods
- Remembers each player's eating and message toggles across restarts.
Honestly I never liked how Mojang implemented the food system. It constantly takes players out of what they're doing in order to fill up a meaningless bar. I do understand that food is important for a survival game, but I think holding down right click for a few seconds every couple of minutes does not make for a compelling game mechanic.
Raw foods and foods that give buffs are best left to manage by the player. I would not want players to waste raw food they're harvesting for cooking, nor am I making this plugin to make people lazier about food. If people are willing to put the effort in to cook or craft their food, they get to have it refill automatically. Sounds like a good balance, right?
- Put the BetterFood.jar into your server and restart your server
- You're done!
betterfood.user- plugin only applies to players with this permission (true by default).betterfood.admin- lets admins use the setup menu and plugin update commands (op by default).
Commands (/bf works too):
/betterfood toggleEating- Toggles automatic eating for the player./betterfoodon its own does the same./betterfood toggleMessage- Toggles eating messages for the player/betterfood setup- Opens the admin menu with the plugin update controls/betterfood applypluginupdate- Applies a downloaded plugin update without restarting the server
More on the wiki.
Matecraft is the official partner server! It is run by me and is always up-to-date with the latest experimental features and new dungeons! Check it out if you want to see my plugins the way they were originally developed to work! It's got a cozy community of dedicated and welcoming players that call it home!
- Java API guide: integration scope (BetterFood has no custom event API)
- Generated Java reference
- Maven repository and coordinates
- Source code
