Munchables
Deprecated mod - functionality is now built into Minecraft starting from version 1.20.5+ through item components.
About the Project
Munchables is a lightweight API with data pack support that allows configuring the consumption time of various items in Minecraft. The system is fully managed through configuration files, making it flexible and convenient for modders.
Compatibility
The mod is compatible with most modifications that add new food items. The only exception is if another mod sets its own consumption time without using the Munchables API.
Usage
To configure item consumption time, you need to:
- Create a data pack
- Inside it, create the folder
namespace/munchables - In this folder, create a JSON file with a name corresponding to the item ID
JSON file structure:
{
"replace": boolean, // if true, overwrites existing settings
"eatTime": int // consumption time in ticks
}
For example, the apple.json file will change the apple consumption time for the specified namespace.
The project is distributed under the MIT license.