跳到正文

NutritionZ

包含5种营养素的营养系统,挑战你的饮食搭配

收藏

截图

介绍

介绍由机器翻译自 Modrinth 原页面,仅供参考。

nutritionz title wide

NutritionZ 添加了营养系统,以增强游戏体验。

安装

NutritionZ 是一个为 Fabric Loader 制作的模组。它需要单独安装 Fabric API 和 Cloth Config API;其他所有依赖项都会随模组一同安装。

不兼容

Tough As Nails

调整

默认数据包与模组兼容

NutritionZ 为其他模组提供了一些默认数据包。你可以通过配置启用或禁用它们。
你可以通过数据包添加其他模组兼容内容。只需遵循 data/somemod/nutrition/somename.json 的结构即可。

以下是默认原版数据包中的示例:

{
    "minecraft:cooked_cod": { // The default datapacks provide 5 points for half saturation
        "carbohydrates": 0,
        "protein": 16,
        "fat": 3,
        "vitamins": 0,
        "minerals": 6
    }
}

营养管理器

你也可以通过数据包调整默认管理器。data/somemod/nutrition_manager/somename.json

借助此功能,你可以替换全部 5 种营养素的正面效果与属性,以及负面效果与属性。

示例:

{
    "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 max level
            },
            "minecraft:haste": { // effect
                "duration": 319, // wouldn`t recommend to lower this on effects
                "amplifier": 0 // equals Haste I
            }
        },
        "negative": {
            "generic.armor_toughness": {
                "operation": "ADD_VALUE",
                "value": 1.0 // needs to be positive value -> will be negative automatically
            },
            "minecraft:mining_fatigue": {
                "duration": 319,
                "amplifier": 0
            }
        }
    }
}

最大营养值和阈值可以在 nutritionz.json5 配置中设置。

{
	"maxNutrition": 100, // Max nutrition for one nutrient
	"negativeNutrition": 10, // 0 - 10 = negative effects / attributes (negative threshold)
	"positiveNutrition": 90, // 90 - 100 = positive effects / attributes (positive threshold)
}

鸣谢


Discord Fabricated Atelier


GitHub 许可证


GitHub 源代码


xR4YM0ND Modrinth

xR4YM0ND Curseforge

评论

登录后评论和评分

xR4YM0ND 的其他作品

查看全部 →