Food API
by AxoLabs
Food API is a NeoForge library for 1.21.1 that replaces the fixed hunger bar with a configurable one, letting other mods extend hunger and food display.
What it does
Food API removes several hardcoded limits of the vanilla hunger system. Maximum hunger capacity is set by a player attribute that can reach up to two rows, 40 units. Drain speed is controlled through a multiplier attribute, so hunger can deplete faster or slower. Both attributes are registered automatically when Food API loads, synced to the client, and can be changed with commands or directly from code.
The second row of the food bar renders above the first and stays in step with the vanilla shake animation. Icons are supplied by a provider system that can replace the empty, half, full, hunger overlay and saturation icons, per player, per row and per slot, through a simple registration API. A provider is registered with an ID and a priority, where the higher priority wins, and a provider that returns no icon passes the lookup to the next one.
The library is aimed at developers. Food API works standalone, and players who add Overflowing Bars or AppleSkin gain optional native support, with Overflowing Bars adding a row counter and stacked icons, and AppleSkin adding saturation overlay icon replacement through FoodIconType.SATURATION. Both attributes and the provider system are meant for mod authors who want to build on the food bar.
Key features
Dynamic hunger capacity
A max hunger attribute raises the food bar up to two rows, 40 units, and can be changed at runtime.
Configurable drain speed
A multiplier attribute sets how fast hunger depletes, so each player or server can use its own rate.
Multi-row food bar
The second row renders above the first with the vanilla shake animation, while single-row display keeps the standard icons.
Provider-based icon replacement
Food icons are replaced by registered providers, set per player, per row and per slot, with priority ordering and fall-through.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does Food API need to be installed on the server?
Does Food API change the hunger bar without other mods?
Which versions does Food API support?
In the catalog
Food API is one of 6,151 Food mods on ModsFinder, and one of 2,596 Food mods for NeoForge. 32,366 mods support Minecraft 1.21.1.
More from AxoLabs
Similar mods
What the author says
Food API is a developer-focused library that removes the hardcoded limitations of Minecraft's vanilla hunger system. It exposes hunger capacity and drain speed as proper entity attributes, adds multi-row food bar rendering, and provides a clean provider-based system for replacing food icons — all with optional…
Official listing
- Modrinth page
- modrinth.com/mod/food-api
- Owner
- AxoLabs
- Published
- 2026-03-15
- Updated on Modrinth
- 2026-03-16
- Facts verified
- 2026-10-15
