Minecraft 的食物机制平淡无奇,我觉得大多数食物类模组都走向了另一个极端。这是我对于营养系统的一种尝试:它不显眼、使用有趣且高度可配置。目标是让 _所有_ 食物都成为你游玩过程中的重要组成部分。直接使用物品的营养数据,并为没有数据的物品提供正则表达式回退支持。

此模组专为 Minecraft 1.21.1 版本制作,并已移植到更高版本。请报告您遇到的任何错误。

想看看这个模组在设计它的整合包中的表现吗?在我的 Minecraft: Classic+ 版本中查看吧!
概览
TL;DR:(真的非常简单,我发誓)
- 食物有助于补充营养类别,这些类别会随时间衰减
- 基于它们的营养值/饱和度值
- 等级越高,衰减速率越慢(可配置)
- 最大生命值由所有类别的充盈程度决定。
- 更改了一些食物机制(全部可配置)
- 饥饿感随时间增加
- 即使饱腹也可以进食
- 添加了一个用于查看营养的物品
- 默认支持流行模组
- (默认关闭)可以按名称启用玩家类别衰变速率!(这样不同的人会以不同方式感到饥饿)
--> 
如所见,工具提示兼容 Thirst was taken 和 Freeze it and Heat it。
为什么要使用此模组?
- 它不像 "Spice Of" 系列模组那样工作,也不会追踪你吃过的食物列表
- 旨在提供极轻量级的用户体验
- 仅添加 1 个物品
- 工具提示默认折叠
- 数字故意模糊以防止极限优化并鼓励实验
- 高度可配置 & 支持模组
- 见下方的配置部分
- 可以通过简单的 JSON 轻松添加对食物的支持
- 使传统上未被利用的食物变得相关
- 增强生存体验并鼓励多样化的饮食习惯
- 内置模组支持:
- Artifacts
- Ben's Sharks
- Brewin and Chewin
- Burnt
- Critters and Companions
- Cold Sweat
- Corn Delight
- Enderscape
- Ends Delight
- Expanded Delight
- Farmer's Delight
- Freeze it and Heat it
- Minecolonies
- More Delight
- Nether Depths Upgrade
- Oceans Delight
- Rustic Delight
- Tide & Tide2

快速示例!
- 要获得最大生命值,你需要最大化所有类别。这使得像曲奇和甜菜根这样的食物比以往任何时候都更加重要!
- 食用相同的高饱和度食物来治疗会使你的饥饿感达到最大值,但随着时间的推移会降低你的最大生命值。
- 拥有一位专门的厨师/营养教练会很棒!
- 与其他食物模组配合极佳(你也可以自己添加更多支持!)
详情
系统是如何工作的?
- 玩家按类别追踪营养,这些类别会随时间减少
- 数值范围是 0-100
- 默认类别是肉类、水果、蔬菜、碳水化合物、甜食
- 这些类别的平均值就是你的营养得分。
- 玩家的最大生命值由其营养得分决定。
- 要提高玩家的营养类别,你必须食用含有该营养的食物。
- 食物在数据包中设置为类别的百分比
- 例如:苹果是 100% 的水果,而兔子炖肉是 50% 肉类、30% 蔬菜和 20% 碳水化合物
- 食物的营养价值由其 Minecraft 营养值和饱和度决定
- 例如:苹果有 4 点营养和 2.4 点饱和度,因此其营养计算如下
- 苹果 = 水果: (4 * 营养系数) + (2.4 * 饱和度系数)
- 系数在配置文件中设置
为什么 X 食物只设置为 Y 类别?
本模组的平衡设计是为了鼓励食物多样性。一个食物所属的类别越多,你就需要吃的多样化食物越少。因此,像苹果(天然含糖)这样的东西不会对“甜食”类别做出贡献。
这支持模组吗?
是的!你可以创建自定义数据包来为模组物品添加信息,或更改我已配置的默认值。
data/ffnutrition/item_nutrition/MODNAME/item.json
示例: data/ffnutrition/item_nutrition/minecraft/rabbit_stew.json
{
"values": [0.5, 0.0, 0.3, 0.2, 0.0]
}
你还可以更改类别
data/ffnutrition/item_nutrition/nutrition_categories.json
哪些是可配置的?
基本上我能想到/实现的所有内容。你可以做一些奇怪的事情,比如为非食物物品启用它。我目前对牛奶就是这样做的!
剧透
- 营养类别
- 营养
- 初始值
- 每刻衰减量
- 启用创造模式下的衰减
- 最大和最小生命值
- 食物饱和度和营养系数(Minecraft 营养,而非 FFNutrition)
- 物品营养回退
- 饥饿衰减
- 完全启用/禁用
- 刻度数量
- 饥饿衰减量
- 饱和度衰减量
- 启用创造模式下的衰减
有指令吗?
当然!有两组指令,一组供普通玩家使用,另一组用于调试。
玩家
剧透警告
ffnutrition getNutritionDataVague [PLAYERNAME]
- 会提示你的整体营养水平
- 会告诉你严重缺乏哪些类别的营养
调试
这些指令需要 2+ 权限等级
剧透警告
ffnutrition getNutritionData [PLAYERNAME]
ffnutrition maxAllNutrients [PLAYERNAME]
ffnutrition minAllNutrients [PLAYERNAME]
ffnutrition setAllNutrients [PLAYERNAME] [VALUE]
ffnutrition addToCategory [PLAYERNAME] [CATEGORY] [VALUE]
- 给指定玩家的营养 CATEGORY 增加 VALUE
ffnutrition setCategory [PLAYERNAME] [CATEGORY] [VALUE]
- 将指定玩家的营养 CATEGORY 设置为 VALUE
其他
我可以在整合包中使用吗?
可以!这正是我最初设计它的用途。
已知问题
- 可能与模组添加的食物方块存在兼容性问题
- 可能与某些修改玩家生命值的模组不兼容(或产生奇怪交互)
- 这是我制作的第一款实质性模组,肯定还有我不知晓的其他 bug
FF 前缀是什么意思?
它代表 Fyxe's Features!这是一种在更改配置或创建整合包时轻松找到我所有模组的简洁方式。“FF”系统的模组通常较小且不具侵入性。
反馈
如果你有任何改进建议、疑问或担忧,欢迎通过电子邮件与我联系:FyxeINCFeedback@gmail.com
Minecraft's food mechancis are lackluster and I feel like most food related mods swing too far the other direction. This is my take on a nutrition system that is unobtrusive, interesting to use, and highly configurable. The goal is to make _all_ foods a relevant part of your playthrough. Uses directly set item nutrition data with a regex fallback for foods without one.

This is made for Minecraft version 1.21.1 and has been ported to further versions. Please report any bugs you encounter.

Want to see the mod in a pack it was designed for? Check it out in my version of Minecraft: Classic+
OVERVIEW
TL;DR: (it's really simple I swear)
- Foods contribute to nutrient categories which decay over time
- Based on their Nutrition/Saturation values
- Decay rate is slower the higher level you are (config)
- Max Health is determined by how full all your categories are.
- Can set minimum in config
- Changes a few food mechanics (all configurable)
- Hunger increases over time
- Can eat when full
- Adds an item to see nutrition
- Supports popular mods by default
- (defaulted off) Can enable player category decay rate by name! (So people get hungry in different ways)
--> 
Seen here, tooltips are compatible using Thirst was taken, and Freeze it and Heat it.
Why use this mod?
- It does not work like "Spice Of" mods, and does not track any list of foods you've eaten
- It is designed to be an extremely lightweight user experience
- Adds only 1 item
- Tooltips are collapsed by default
- Numbers are intentionally to prevent min-maxing and encourage expirementation
- Highly configurable & supports mods
- See Config section below
- Can easily add support for foods through simple json
- Makes traditionally unused food relevant
- Enhances the survival experiences and encourages diverse eating habits
- Built-in mod support for:
- Artifacts
- Ben's Sharks
- Brewin and Chewin
- Burnt
- Critters and Companions
- Cold Sweat
- Corn Delight
- Enderscape
- Ends Delight
- Expanded Delight
- Farmer's Delight
- Freeze it and Heat it
- Minecolonies
- More Delight
- Nether Depths Upgrade
- Oceans Delight
- Rustic Delight
- Tide & Tide2

Quick Examples!
- To get max health you'll need to max all your categories. This makes things like cookies and beetroot more relevant than ever!
- Eating the same high saturation food to heal will max your hunger but will lower your max health over time.
- Would be great to have a dedicated cook / nutrition coach!
- Pairs incredibly well with other food mods (and you can add support for more yourself!)
DETAILS
How does the system work?
- Players track nutrition per-category, and these decrease over time
- Is a value from 0-100
- The default categories are Meat, Fruit, Veg, Carbs, Sweets
- The average of these categories is your nutrition score.
- Player max health is determined by their nutrition score.
- A min-health value exists to prevent really low max health values.
- To increase a player's nutrition category, you must eat food that contains that nutrition.
- Food is setup in data as percentage of category
- i.e. Apple is 100% fruit, whereas rabbit stew is 50% meat, 30% veg, and 20% carbs
- Food nutritional value is determined by its minecraft nutrition and saturation
- i.e. Apple is 4 nutrition and 2.4 saturation, therefor its nutrition is calculated as
- Apple = Fruit: (4 * NutritionModifier) + (2.4 * SatrationModifier)
- The modifiers are set in configs
Why is X food set to only Y Category?
The balance design of this mod is to encourage food diversity. The more categories a food belongs to, the less diverse food you need to eat. Therefore, things like Apples (which have sugar in them naturally) do not contribute to the "sweets" category.
- This can be changed by configuring foods using datapacks!
Does this support mods?
Yes! You can create custom data packs to add information for modded items, or change the defaults of the ones I've configured.
data/ffnutrition/item_nutrition/MODNAME/item.json
example: data/ffnutrition/item_nutrition/minecraft/rabbit_stew.json
{
"values": [0.5, 0.0, 0.3, 0.2, 0.0]
}
- Each value is the percetnage the food is made up of that category.
Also you can change the categories
data/ffnutrition/item_nutrition/nutrition_categories.json
What's configurable?
Literally everything that I could think of / get working. You can do weird things like enable it for non-food items. I currently do it for milk!
Spoiler
- Nutrition Categories
- Names
- Amount of categories
- Nutrition
- Initial value
- Decay per tick
- Enable decay in creative
- Max and Min health
- Food Saturation and Nutrition modifier (minecraft nutrition, not FFNutrition)
- Item Nutrition Fallback
- Fully Enable/Disable
- Nutrition values
- Hunger Decay
- Fully Enable/Disable
- Amount of ticks
- Hunger decay amount
- Saturation decay amount
- Enable in creative
Are there commands?
You bet! There's 2 sets of commands, one for general player use and another set for debugging.
Players
Spoiler
ffnutrition getNutritionDataVague [PLAYERNAME]
- Will hint at your overall nutrition level
- Will give you categories that you're very deficient in
Debugging
These require permission level 2+
Spoiler
ffnutrition getNutritionData [PLAYERNAME]
- Gives you the exact nutrition score and category values
ffnutrition maxAllNutrients [PLAYERNAME]
- Sets all nutrient categories on the given player to 100
ffnutrition minAllNutrients [PLAYERNAME]
- Sets all nutrient categories on the given player to 0
ffnutrition setAllNutrients [PLAYERNAME] [VALUE]
- Sets all nutrient categories on the given player to VALUE
ffnutrition addToCategory [PLAYERNAME] [CATEGORY] [VALUE]
- Adds to the nutrient CATEGORY on the given player by VALUE
ffnutrition setCategory [PLAYERNAME] [CATEGORY] [VALUE]
- Sets the nutrient CATEGORY on the given player to VALUE
OTHER
Can I use in modpacks?
Yes! That's what I initially designed this for.
Known issues
- May have compatability issues with modded placed food blocks
- Probably not compatible (or has weird interactions) with some mods that modify player health
- This is my first substantial mod, there will surely be other bugs I'm unaware of
What's with the FF prefix?
It stands for Fyxe's Features! Its a clean way to easily find all of my mods when changing configs or creating packs. Mods that are a part of the "FF" system are usually smaller and unintrusive.
Feedback
If you have any ideas for improvements, questions, or concerns, I am open to communicating through email: FyxeINCFeedback@gmail.com
评论 0
登录后参与评分
还没有评论,来抢沙发吧