【食物搜索】Gothening's Not Yet Eat All
一个按键。寻找食物。进食。
Gothening's Not Yet Eat All 是一款适用于 Minecraft NeoForge 1.21.1 的轻量级食物自动化实用模组。
按下单个按键,即可让服务器从你可访问的存储中查找合适的食物,将其取出,并为你执行正常的 Minecraft 进食流程。
没有任何物品数据从客户端发送到服务器。食物的选择、存储和消耗决策均由服务器做出。
功能特性
一键进食
按配置的按键绑定即可自动查找并食用食物。
默认按键为:
V
该按键可以通过 Minecraft 的按键绑定设置进行修改或禁用。
多种食物来源
模组可以从以下位置搜索食物:
- 玩家背包
- 附近的原版容器
- Refined Storage 网络
- Applied Energistics 2 终端及无线终端
- Sophisticated Backpacks
- Sophisticated Storage 网络
支持的原版容器包括:
- 箱子 (Chests)
- 陷阱箱 (Trapped chests)
- 桶 (Barrels)
- 潜影盒 (Shulker boxes)
- 大型箱子 (Double chests)
Spice of Life 集成
当安装 Spice of Life 时,模组会优先选择:
- 玩家尚未吃过的食物
- 玩家已经吃过的食物
这使得模组能够自然地支持食物多样性玩法,而无需修改 Spice of Life 的内部数据。
正常的 Minecraft 进食机制
食物通过 Minecraft 原版的饥饿系统被消耗。
这意味着模组尊重以下机制:
- 饥饿值
- 饱和度
- 食物效果
- 剩余物品(如骨头)
- 正常的物品消耗行为
模组不会简单地从存储中删除食物。
食物黑名单
可以使用完整的物品 ID 排除特定食物。
例如:
food_blacklist = [
"minecraft:rotten_flesh",
"farmersdelight:example_food"
]
这适用于原版 Minecraft 的食物以及第三方食物模组中的食物。
可配置的提供程序
可以通过配置文件启用或禁用各个存储提供程序。
你可以选择模组允许搜索哪些存储系统。
支持版本
- Minecraft 1.21.1
- NeoForge
可选集成
以下模组为可选集成:
- Refined Storage
- Applied Energistics 2
- Sophisticated Backpacks
- Sophisticated Storage
- Spice of Life: Carrot Edition
模组不会捆绑或重新分发这些模组的代码。
服务器权威
食物的选择、提取和消耗均由服务器处理。
客户端仅发送一个空的进食请求。
客户端不发送:
这使得该系统适合需要保持服务器权威性的多人游戏环境。
性能
模组不会每 tick 连续扫描食物。
仅在发出进食请求时才会搜索存储网络和容器。
开发和诊断日志在可能的情况下保持在 DEBUG 级别,以避免在正常游戏过程中产生不必要的日志垃圾。
安全功能
模组包含多项安全措施:
- 防止因快速按键导致的重复请求
- 保护玩家主手物品
- 在消耗失败时返回已提取的食物
- 在成功或失败时释放活动请求
- 优雅地禁用不兼容的可选集成
- 如果无法集成 Spice of Life,则回退到正常的食物选择逻辑
配置
配置文件位于:
config/gothenings_not_yet_eat_all-common.toml
更改配置后,请重启游戏或服务器。
构建
项目使用 Gradle。
./gradlew build
生成的 JAR 文件位于:
build/libs/
许可证
本项目遵循 MIT 许可证。
版权所有 (c) 2026 Gothening。
你可以根据 MIT 许可证自由使用、修改、分发此模组,并将其包含在整合包中。
免责声明
本项目与 Mojang Studios、Microsoft、Refined Storage、Applied Energistics 2、Sophisticated Backpacks、Sophisticated Storage 或 Spice of Life 无关,也未得到它们的认可或背书。
【食物搜索】 Gothening's Not Yet Eat All
One key. Find food. Eat.
Gothening's Not Yet Eat All is a lightweight food automation utility for Minecraft NeoForge 1.21.1.
Press a single key to let the server find suitable food from your accessible storage, retrieve it, and perform the normal Minecraft eating process for you.
No item is sent from the client to the server. The server makes the food-selection, storage, and consumption decisions.
Features
One-Key Eating
Press the configurable keybind to automatically find and eat food.
The default key is:
V
The key can be changed or disabled through Minecraft's keybind settings.
Multiple Food Sources
The mod can search food from:
- Player inventory
- Nearby vanilla containers
- Refined Storage networks
- Applied Energistics 2 terminals and wireless terminals
- Sophisticated Backpacks
- Sophisticated Storage networks
Supported vanilla containers include:
- Chests
- Trapped chests
- Barrels
- Shulker boxes
- Double chests
Spice of Life Integration
When Spice of Life is installed, the mod prefers:
- Foods the player has not eaten yet
- Foods the player has already eaten
This allows the mod to naturally support food-diversity gameplay without modifying Spice of Life's internal data.
Normal Minecraft Eating
Food is consumed through the normal Minecraft food system.
This means the mod respects:
- Hunger
- Saturation
- Food effects
- Remaining items
- Normal item consumption behavior
The mod does not simply delete food from storage.
Food Blacklist
Specific foods can be excluded using their complete item ID.
For example:
food_blacklist = [
"minecraft:rotten_flesh",
"farmersdelight:example_food"
]
This works with foods from vanilla Minecraft and third-party food mods.
Configurable Providers
Individual storage providers can be enabled or disabled through configuration.
You can choose which storage systems the mod is allowed to search.
Supported Versions
- Minecraft 1.21.1
- NeoForge
Optional Integrations
The following mods are optional:
- Refined Storage
- Applied Energistics 2
- Sophisticated Backpacks
- Sophisticated Storage
- Spice of Life: Carrot Edition
The mod does not bundle or redistribute code from these mods.
Server Authoritative
Food selection, extraction, and consumption are handled by the server.
The client only sends an empty eating request.
The client does not send:
- Item IDs
- Storage locations
- Item quantities
- Food-selection results
This makes the system suitable for multiplayer environments where the server should remain authoritative.
Performance
The mod does not continuously scan for food every tick.
Storage networks and containers are searched only when an eating request is made.
Development and diagnostic logs are kept at DEBUG level where possible to avoid unnecessary log spam during normal gameplay.
Safety Features
The mod includes several safeguards:
- Prevents duplicate requests from rapid key presses
- Protects the player's main-hand item
- Returns extracted food when consumption fails
- Releases active requests on both success and failure
- Gracefully disables incompatible optional integrations
- Falls back to normal food selection if Spice of Life integration is unavailable
Configuration
The configuration file is:
config/gothenings_not_yet_eat_all-common.toml
After changing the configuration, restart the game or server.
Building
The project uses Gradle.
./gradlew build
The resulting JAR is generated in:
build/libs/
License
This project is licensed under the MIT License.
Copyright (c) 2026 Gothening.
You are free to use, modify, distribute, and include this mod in modpacks in accordance with the MIT License.
Disclaimer
This project is not affiliated with or endorsed by Mojang Studios, Microsoft, Refined Storage, Applied Energistics 2, Sophisticated Backpacks, Sophisticated Storage, or Spice of Life.
评论 0
登录后参与评分
还没有评论,来抢沙发吧