feat: restock food before disconnecting from starvation #93

Merged
gecko merged 1 commit from t3/disconnect-starvation-no-food into main 2026-11-02 18:22:22 +00:00
Owner

Summary

  • Detect sustained hunger when AutoEat has no usable food and disconnect before starvation can kill the bot.
  • For normal farms, withdraw edible food from the configured restock chest before resuming; disconnect if no food is available, there is no room, or the rescue cannot complete.
  • Document food restock behavior and cover starvation/restock decisions with unit tests.

Testing

  • ./scripts/ci-preflight.sh — passed.
  • Gradle lint build — passed.
  • ./scripts/check-release-jar.sh — passed.
  • git diff --check — passed.
  • Minecraft client integration — Not run locally; CI-only.
## Summary - Detect sustained hunger when AutoEat has no usable food and disconnect before starvation can kill the bot. - For normal farms, withdraw edible food from the configured restock chest before resuming; disconnect if no food is available, there is no room, or the rescue cannot complete. - Document food restock behavior and cover starvation/restock decisions with unit tests. ## Testing - `./scripts/ci-preflight.sh` — passed. - Gradle `lint build` — passed. - `./scripts/check-release-jar.sh` — passed. - `git diff --check` — passed. - Minecraft client integration — Not run locally; CI-only.
feat: restock food before disconnecting from starvation
All checks were successful
build / Java 25 build (pull_request) Successful in 3m18s
4a5743e3e7
- Withdraw AutoEat-usable food from farm restock chests when hunger is low
- Safety-disconnect when food is unavailable or cannot be restocked
gecko merged commit 0283adb021 into main 2026-11-02 18:22:22 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gecko/mcbot!93
No description provided.