NutritionZ - Nutrition System for Minecraft

NutritionZ mod introduces an advanced nutrition system to Minecraft, adding a new level of complexity and realism to the gameplay.
Installation and Compatibility
NutritionZ is designed to work with Fabric Loader. For proper operation, you need to install Fabric API and Cloth Config API separately. Other dependencies are installed automatically with the mod.
Incompatible mods:
- Tough As Nails
Configuration and Compatibility
Default Datapacks
The mod includes ready-made datapacks for compatibility with other mods. You can enable and disable them through configuration files. You can also add your own compatibility through datapacks by following the structure data/somemod/nutrition/somename.json.
Example from the default vanilla datapack:
{
"minecraft:cooked_cod": { // Default datapacks provide 5 points for half saturation
"carbohydrates": 0,
"protein": 16,
"fat": 3,
"vitamins": 0,
"minerals": 6
}
}
Nutrition Management
You can configure the default nutrition manager through datapacks at the path data/somemod/nutrition_manager/somename.json. This allows you to replace positive effects and attributes for all five nutrients, as well as configure negative effects.
Configuration example:
{
"minerals": {
"replace": true,
"positive": {
"generic.armor_toughness": { // attribute
"operation": "ADD_VALUE", // ADD_VALUE, ADD_MULTIPLIED_BASE, ADD_MULTIPLIED_TOTAL
"value": 1.0 // gives +1 armor toughness per level -> e.g., +20 at max level
},
"minecraft:haste": { // effect
"duration": 319, // not recommended to decrease effect duration
"amplifier": 0 // equals Haste I
}
},
"negative": {
"generic.armor_toughness": {
"operation": "ADD_VALUE",
"value": 1.0 // must be positive value -> automatically becomes negative
},
"minecraft:mining_fatigue": {
"duration": 319,
"amplifier": 0
}
}
}
}
Maximum nutrition values and thresholds can be set in the configuration file nutritionz.json5:
{
"maxNutrition": 100, // Maximum nutrition for one nutrient
"negativeNutrition": 10, // 0 - 10 = negative effects/attributes (negative threshold)
"positiveNutrition": 90, // 90 - 100 = positive effects/attributes (positive threshold)
}