ModsFinder

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.

NeoForgeClient and serverMozilla Public License 2.0Open source1.21.1

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

  1. Dynamic hunger capacity

    A max hunger attribute raises the food bar up to two rows, 40 units, and can be changed at runtime.

  2. Configurable drain speed

    A multiplier attribute sets how fast hunger depletes, so each player or server can use its own rate.

  3. Multi-row food bar

    The second row renders above the first with the vanilla shake animation, while single-row display keeps the standard icons.

  4. 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.

Compatibility

Latest build for each game version and loader.

1.21.11.1
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Questions

Does Food API need to be installed on the server?

Yes. Installation covers the server and each player's game.

Does Food API change the hunger bar without other mods?

Yes. Food API works standalone, and Overflowing Bars and AppleSkin add optional extra features when they are present.

Which versions does Food API support?

The NeoForge file 1.1 is built for 1.21.1 only, and was published on 2026-03-16.

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

All projects

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…
AxoLabs, on the Modrinth page

Official listing

Owner
AxoLabs
Published
2026-03-15
Updated on Modrinth
2026-03-16
Facts verified
2026-10-15

Tags