Food API

A flexible food system API: configurable hunger capacity and drain via attributes, multi-row food bar rendering and a provider-based icon system for mod integration.
2c3217093736b1de83011cdfb264d65ad534622c.png

2c3217093736b1de83011cdfb264d65ad534622c.png

aa2cbbc7870ce4daa9f2018bf25039f7833f592d.png

aa2cbbc7870ce4daa9f2018bf25039f7833f592d.png

Description

Vanilla hunger is hardcoded: one row and a fixed drain. Food API turns hunger capacity and drain speed into ordinary player attributes, so other mods, commands and datapacks can change them.

✨ What it does

  • Up to 2 hunger rows. food_api:max_hunger goes from 1 to 40.
  • Custom drain speed. food_api:hunger_rate from 0× to 10×.
  • Swappable food icons. Per player, per row, per slot.
  • Every loader. Forge, NeoForge and Fabric, from 1.20.1 to 26.3.
  • Works with Overflowing Bars and AppleSkin.

With Overflowing Bars  ·  Vanilla

🔧 For developers

Attributes, the icon provider API and code examples are in the developer guide on GitHub →

 

Food API Team

profile avatar
Owner
  • 3
    Projects
  • 330
    Downloads

More from AxoLabs

  • Azimuth project image

    Azimuth

    A minimal HUD compass bar that marks spawn, lodestones, your last death and map targets, all taken from the vanilla compasses and maps you carry.

    • 148
    • November 21, 2026
  • Echo Sonar project image

    Echo Sonar

    Carry an Echo Shard, and an arc around your crosshair points to nearby sounds, colour-coded by danger.

    • 104
    • November 21, 2026
  • Azimuth project image

    Azimuth

    A minimal HUD compass bar that marks spawn, lodestones, your last death and map targets, all taken from the vanilla compasses and maps you carry.

    • 148
    • November 21, 2026
  • Echo Sonar project image

    Echo Sonar

    Carry an Echo Shard, and an arc around your crosshair points to nearby sounds, colour-coded by danger.

    • 104
    • November 21, 2026