L’DieDiet
适用于 Minecraft Java 1.20.1 / Forge 47.x 的食物多样性、营养与奖励模组。需要 Java 17。版本 2.0.0。采用 MIT 许可证。
总是吃同样的饭菜迟早会腻。L’DieDiet 鼓励你尝试其他食物,维持营养平衡,并发现食物组合带来的奖励。多样化的饮食可以恢复你对早期食物的食欲。
下载模组 · 获取数据包 · 整合包作者指南 · 开发者 API
玩家功能
- 每种食物有五个阶段,从新鲜到厌恶。阶段会影响饥饿值和饱和度的恢复量、进食时间、营养获得量以及允许获得的有益食物效果。
- 通过食用其他营养丰富的食物来恢复食欲。仅等待不会恢复它。
- 按 N 键打开日记,显示营养状况、已食用食物、所属群组及激活的效果。可查看效果的来源以及距离各阶段界限的剩余份量。
- 可配置的营养量表、基于填充量的奖励加成,以及随着饥饿值消耗而发生的自然衰减。
- 带有奖励和成就的食物群组。隐藏群组在其首次有效奖励激活后才会显现。
- 支持英语和俄语界面。资源包可以替换翻译、展示样式和图标。
安装
- 安装 Minecraft 1.20.1、Forge 47.x 和 Java 17。
- 将发布的 JAR 文件放入
mods 文件夹。多人游戏要求服务器和客户端都安装该模组。
- 如需预定义的营养量表和群组,请在
<world>/datapacks 中安装一个单独的数据包 ZIP 文件。请勿解压;pack.mcmeta 位于归档根目录。
- 运行
/reload 并检查 /datapack list enabled。按 N 键打开日记(可在控制设置中配置)。
GitHub 会将上传的 JAR 文件名标准化为 l.diediet_2.0.0.jar。无论是它还是 LDieDiet-2.0.0.zip 内部的 JAR 均可正常使用。ZIP 文件保留了原始文件名 l'diediet_2.0.0.jar;在安装到 mods 之前,请先提取该 JAR 文件。
习惯化机制独立运作。群组、量表和奖励不再作为可安装的数据包捆绑在模组 JAR 内部:请安装一个数据包或提供受支持的 Diet 数据。
单独的数据包
| 数据包 |
内容 |
| All of Food |
当前的 FreshCraft 食物/饮料目录:1091 个 ID、17 个原始分类、六个营养量表、成就以及保存的 CCI 配置文件。 |
| All of Food Vanilla |
43 个原版食物/饮料 ID、11 个适用分类、六个量表以及成就。仅需 L’DieDiet。 |
数据包源代码和安装详情
All of Food 反映了于 2026 年 10 月 10 日导出的 FreshCraft 注册表。来自新添加模组的食品需要新的配置文件/成员资格。food-assignments.csv 列出了分配情况,coverage.json 总结了覆盖率。一种食物可能属于多个群组。溅射型/滞留型药水不包含在目录中;普通药水被计为饮料,但不计入习惯化统计。
这些变体共享群组/量表 ID:每个世界只能安装一个变体。Original 保留源数据包依赖项;对于普通 Minecraft,请选择 Vanilla。
默认行为
重复摄入会根据原始营养价值和陈旧度复杂度指数(CCI)建立习惯化。其他食物会减少记录的累积值。默认情况下,恢复需要在扣除惩罚/容量限制后实际获得至少一整点饥饿值。因此,在满饥饿状态下进行的创造模式测试无法演示恢复效果。数据包作者可以更改资格要求。
默认情况下,营养量表会在失去饥饿值时衰减。死亡会移除当前每个营养值的 50%;该设置不会重置习惯化、终生摄入计数或发现记录。这些设置均可配置。
自动从配方派生 CCI 的功能默认处于禁用状态。现成的数据包包含保存的值。作者可以提供自己的值或启用计算功能;使用操作者权限运行 /ldiediet calc_all_cci 可显式重新计算自动值。
兼容性与自定义
Diet 是可选的。安装受支持版本后,L’DieDiet 会导入其支持的数据并禁用其游戏玩法处理器,以避免出现重复系统。经过测试的版本是用于 Minecraft 1.20.1 的 Diet Forge 2.1.1;不受支持的 Diet 版本将在加载时停止并显示不兼容消息。
作者指南 涵盖了所有量表/群组字段、配置、公式、NBT 变体、奖励和翻译。API 参考 涵盖了服务器状态、可取消的 Forge 事件、KubeJS 访问、世界谓词、外部喂食以及自定义配方适配器。
提交错误报告时,请包含 Forge/模组版本、latest.log、相关数据包/配置信息以及复现步骤。报告错误。
从源代码构建
使用 Java 17:
./gradlew build
./gradlew test
./gradlew runGameTestServer
在 Windows 上,请使用 gradlew.bat。构建输出为 build/libs/l'diediet_2.0.0.jar。测试类和fixtures 不包含在发布的 JAR 中。有关项目布局和贡献说明,请参阅 开发者设置。
许可
本项目中的模组代码和准备的数据包均根据 MIT 许可证分发。单独的数据包拥有各自副本的许可证。
L’DieDiet
Food variety, nutrition, and rewards for Minecraft Java 1.20.1 / Forge 47.x. Requires Java 17. Version 2.0.0. MIT licensed.
Eating the same meal eventually gets old. L’DieDiet encourages you to try other foods, maintain your nutrition, and discover rewards for food combinations. A varied diet restores your appetite for earlier meals.
Download the mod · Get datapacks · Modpack Author Guide · Developer API
Player features
- Five stages for each food, from fresh to aversion. Stages affect hunger and saturation restoration, eating time, nutrition gain, and allowed beneficial food effects.
- Appetite recovery by eating other nutritious foods. Waiting alone does not restore it.
- A journal on N, with nutrition, eaten foods, groups, and active effects. View effect sources and portions remaining to each stage boundary.
- Configurable nutrition scales, fill-based bonuses, and natural decay as hunger is spent.
- Food groups with rewards and achievements. Secret groups reveal themselves after their first effective reward activation.
- English and Russian interfaces. Resource packs can replace translations, presentation, and icons.
Installation
- Install Minecraft 1.20.1, Forge 47.x, and Java 17.
- Put the release JAR in
mods. Multiplayer requires the mod on both server and clients.
- For predefined nutrition scales and groups, install one separate datapack ZIP in
<world>/datapacks. Do not unzip it; pack.mcmeta is at the archive root.
- Run
/reload and check /datapack list enabled. Open the journal with N, configurable in Controls.
GitHub normalizes the uploaded JAR filename to l.diediet_2.0.0.jar. Both it and the JAR inside LDieDiet-2.0.0.zip work. The ZIP preserves the original filename l'diediet_2.0.0.jar; extract that JAR before installing it in mods.
Habituation works independently. Groups, scales, and rewards are no longer bundled as an installable datapack inside the mod JAR: install a datapack or provide supported Diet data.
Separate datapacks
| Pack |
Contents |
| All of Food |
Current FreshCraft food/drink catalog: 1091 IDs, 17 original categories, six nutrition scales, achievements, and saved CCI profiles. |
| All of Food Vanilla |
43 vanilla food/drink IDs, 11 applicable categories, six scales, and achievements. Requires only L’DieDiet. |
Datapack source and installation details
All of Food reflects the FreshCraft registry exported on October 10, 2026. Foods from newly added mods need new profiles/membership. food-assignments.csv lists assignments and coverage.json summarizes coverage. Foods may belong to multiple groups. Splash/lingering potions are excluded from the catalog; ordinary potions are counted as drinks but excluded from habituation.
The variants share group/scale IDs: install one variant per world. Original retains source-pack dependencies; choose Vanilla for ordinary Minecraft.
Default behavior
Repeated consumption builds habituation based on original nutritional value and CCI, the food's complexity. Other food reduces recorded accumulation. By default, recovery requires an actual gain of at least one whole hunger point after penalties/capacity limits. Creative-mode testing at full hunger therefore does not demonstrate recovery. Pack authors can change eligibility.
Nutrition scales decay on hunger loss by default. Death removes 50% of each current nutrition value; that setting does not reset habituation, lifetime consumption counts, or discoveries. These settings are configurable.
Automatic recipe-derived CCI is disabled by default. Ready-made packs contain saved values. Authors can supply their own or enable calculation; /ldiediet calc_all_cci explicitly recalculates automatic values with operator permissions.
Compatibility and customization
Diet is optional. With the supported version installed, L’DieDiet imports its supported data and disables its gameplay handlers to avoid duplicate systems. The tested version is Diet Forge 2.1.1 for Minecraft 1.20.1; unsupported Diet versions stop loading with an incompatibility message.
The Author Guide covers every scale/group field, configuration, formulas, NBT variants, rewards, and translations. The API Reference covers server state, cancelable Forge events, KubeJS access, world predicates, external feeding, and custom recipe adapters.
For a bug report, include Forge/mod versions, latest.log, relevant datapack/configuration, and reproduction steps. Report a bug.
Building from source
With Java 17:
./gradlew build
./gradlew test
./gradlew runGameTestServer
On Windows, use gradlew.bat. The build output is build/libs/l'diediet_2.0.0.jar. Test classes and fixtures are excluded from the release JAR. See Developer Setup for project layout and contributions.
License
The mod code and datapacks prepared in this project are distributed under MIT. Separate datapacks have their own copy of the license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧