
描述
Not Just Spoiled 是一款现代模组,添加了一个简单但具有沉浸感和真实感的食物腐烂系统。它通过鼓励玩家仔细管理食物供应而不使游戏变得过于困难,让生存体验更加动态。凭借广泛的配置选项、基于 JSON 的自定义和性能优化,该模组旨在适应个人世界和大型整合包。
特性
食物状态
食物状态系统是 Not Just Spoiled 的核心。与其他模组直接将食物转化为腐肉或其他物品不同,本模组添加了 4 种不同的腐烂状态:新鲜、不新鲜、半腐烂和腐烂。食物不会立即变得不可用——它会随着时间的推移逐渐失去品质,每种状态都有各自的饥饿值和饱和度值。这使得食物在完全腐烂之前效果会降低,为生存增添了更多深度,而不会让食物管理变得过于严苛。腐烂的食物还可能施加负面效果。
食物类别
每个食物项目都属于 34 个逻辑划分的食物类别之一,每个类别都有自己的腐烂时间。这允许不同类型的食物以不同的速率腐烂,使食物管理成为游戏玩法中更重要的部分。目前,类别仅影响腐烂持续时间,但未来更新计划添加基于食物类别的其他机制。
食物环境
在本模组中,食物并非经过固定时间后才会腐烂。相反,腐烂速度取决于食物当前所处的环境。共有 3 种环境:背包、储物箱和露天。环境越差,食物腐烂得越快!
战利品表中的食物腐烂
战利品表(如宝箱、考古等)中的食物根据其被发现的位置可以具有不同的腐烂状态。战利品表可以使用内置的战利品修饰符来定义其生成食物的预期状况,而不是始终生成新鲜食物。例如,埋藏的宝藏、沉船、矿坑或其他废弃结构中的食物会生成已经腐烂的食物,而村庄、府邸、堡垒等处的食物将是新鲜或不新鲜的。这一机制使战利品感觉更加动态和合乎逻辑,因为发现的食物腐烂状态取决于发现它的地点。
目前有 4 种战利品修饰符:
- Fresh。食物始终生成时处于新鲜状态。
- Fresh or stale。食物生成时处于新鲜或不新鲜状态。
- Spoiled。食物始终生成时处于腐烂状态。
- Random。食物生成时处于随机腐烂状态。
食物合成
食物腐烂对合成的影响方式是完全可配置的。有五种食物合成模式,每种模式都有其自己的规则和逻辑,让你决定食物腐烂对你的生存体验有多大影响。
- Average。食物总是可以被合成。结果的腐烂时间计算为所有原料的加权平均值。
- Worst status。食物总是可以被合成。结果继承最差原料的腐烂等级。例如,如果所有原料都是新鲜的,但有一个是半腐烂的,那么合成的食物也将是半腐烂的。
- Same status。只有当所有原料具有相同的食物状态时,才能合成食物。
- Fresh only。仅在使用新鲜原料时才能合成食物。
- Fresh or stale。仅在使用新鲜或不新鲜原料时才能合成食物。
食物堆叠
与许多类似的模组不同,Not Just Spoiled 保留了原版物品的堆叠行为,没有任何变通方法或人为限制。只要所有物品具有相同的腐烂状态,食物就可以正常堆叠。当食物堆合并时,最终的腐烂时间使用加权算术平均值正确计算,确保不会丢失任何腐烂数据。
配置
食物腐烂系统的几乎所有方面都可以通过配置文件或 JSON 文件进行自定义:
- 每种食物状态的饥饿值和饱和度值(JSON);
- 每种状态的负面效果、持续时间、放大倍数和应用几率(JSON);
- 每种食物类别的腐烂时间(JSON);
- 食物合成模式(配置文件);
- 不同环境下的腐烂速度(配置文件);
- 各种工具提示信息(配置文件);
- 食物槽位覆盖层(配置文件);
- 不同战利品表中初始食物的腐烂状态(JSON);
- 战利品生成的腐烂状态几率(配置文件);
性能
该模组围绕智能延迟更新系统构建,而不是冗余地 tick 玩家、物品和方块实体,这意味着食物仅在以下三种情况下更新:
- 当其环境发生变化时;
- 当玩家食用它时;
- 当它与其他食物堆合并时。
这种方法避免了不必要的计算,即使世界中存在大量食物物品,也能将性能影响降至最低。
兼容性
Not Just Spoiled 并不自动与其他模组兼容。但是,可以通过 JSON 文件轻松添加兼容性,而某些模组可能需要额外的代码内支持。
需要额外兼容性的模组包括那些添加:
- 食物物品或食物原料(JSON);
- 战利品表(例如宝箱、考古等)(JSON);
- 具有自定义库存的高级方块,例如 Sophisticated Backpacks 中的背包或 Farmer's Delight 中的烹饪锅(需要代码内支持)。
兼容:
特殊整合支持:
你可以在 模组的 Issue 追踪器 提交兼容性请求。

Description
Not Just Spoiled is a modern mod that adds a simple but immersive and realistic food spoilage system. It makes survival more dynamic by encouraging players to carefully manage their food supplies without becoming overly difficult. With extensive configuration options, JSON-based customization and performance, the mod is designed to fit both personal worlds and large modpacks.
Features
Food Status
Food status system is the core of Not Just Spoiled. While other mods simply convert food into rotten flesh or another item, this mod adds 4 different spoilage statuses instead: fresh, stale, half-spoiled and spoiled. Food does not instantly become unusable — it gradually loses its quality over time, with each status having its own hunger and saturation values. This allows food to become less effective before becoming completely spoiled, adding more depth to survival without making food management overly punishing. Spoiled food may also apply negative effects.
Food Category
Every food item belongs to one of 34 logically divided food categories, each with its own spoilage time. This allows different types of food to spoil at different rates, making food management a more important part of gameplay. For now, categories affect only spoilage duration, but additional mechanics based on food categories are planned for future updates.
Food Environment
Food in this mod does not spoil after a fixed amount of time. Instead, spoilage speed depends on the environment the food is currently in. There are 3 environments: inventory, storage and open air. The worse the environment, the faster the food spoils!
Food Spoilage in Loot Tables
Food in loot tables (like chests, archaeology, etc.) can have different spoilage statuses depending on where it is found. Instead of always generating fresh food, loot tables can define the expected condition of the food they generate using built-in loot modifiers. For example, food in buried treasures, shipwrecks, mineshafts or other abandoned structures generates already spoiled, while food in villages, mansions, bastions, etc. will be fresh or stale. This mechanic makes loot feel more dynamic and logical, as the spoilage status of found food depends on the place where it was discovered.
Currently, there are 4 loot modifiers:
- Fresh. Food always generates with fresh status.
- Fresh or stale. Food generates with fresh or stale status.
- Spoiled. Food always generates with spoiled status.
- Random. Food generates with a random spoilage status.
Food Crafting
The way food spoilage affects crafting is fully configurable. There are five food crafting modes, each with its own rules and logic, letting you decide how much food spoilage affects your survival experience.
- Average. Food can always be crafted. The spoilage time of the result is calculated as the weighted average of all ingredients.
- Worst status. Food can always be crafted. The result inherits the spoilage level of the worst ingredient. For example, if all ingredients are fresh but one is half-spoiled, the crafted food will also be half-spoiled.
- Same status. You can craft food only if all ingredients have the same food status.
- Fresh only. Food can be crafted only when using fresh ingredients.
- Fresh or stale. Food can be crafted only when using fresh or stale ingredients.
Food Stacking
Unlike many similar mods, Not Just Spoiled keeps vanilla item stacking behavior without any workarounds or artificial limitations. Food can be stacked normally as long as all items have the same spoilage status. When food stacks are merged, the final spoilage time is calculated correctly using a weighted arithmetic mean, ensuring that no spoilage data is lost.
Configuration
Almost every aspect of the food spoilage system can be customized through config or JSON files:
- hunger and saturation values of each food status (JSON);
- effects, their duration, amplifier and applying chance for each status (JSON);
- spoilage time of each food category (JSON);
- food crafting mode (config);
- spoilage speed in different environments (config);
- various tooltip information (config);
- food slot overlay (config);
- initial food spoilage status in different loot tables (JSON);
- spoilage status chances for loot generation (config);
Performance
The mod is built around a smart lazy-update system instead of redundant ticking of players, item and block entities, meaning that food is updated in only 3 scenarios:
- when its environment changes;
- when a player eats it;
- when it merges with other food stacks.
This approach avoids unnecessary calculations and keeps the performance impact minimal, even with large amounts of food items in the world.
Compatibility
Not Just Spoiled is not automatically compatible with other mods. However, compatibility can be easily added via JSON files, while some mods may require additional in-code support.
Additional compatibility is required for mods that add:
- food items or food ingredients (JSON);
- loot tables (e.g. chests, archaeology, etc.) (JSON);
- advanced blocks with custom inventories, such as backpacks from Sophisticated Backpacks or cooking pots from Farmer's Delight (requires in-code support).
Compatible with:
Special integration with:
- AppleSkin (dynamically updates hunger and saturation values in the tooltip depending on the food's current status)
- Tough As Nails (food spoilage also works with TAN's thirst system)
You can submit a compatibility request on the mod's issue tracker.
评论 0
登录后参与评分
还没有评论,来抢沙发吧