Skip to content

2.0.08: look for animals with Baritone instead of pausing when none are in sight - #22

Merged
MrHakan merged 1 commit into
mainfrom
ccr-5681ba59-e5pne2
Oct 10, 2026
Merged

MrHakan merged 1 commit into
mainfrom
ccr-5681ba59-e5pne2

Conversation

@MrHakan

@MrHakan MrHakan commented Oct 10, 2026

Copy link
Copy Markdown
Owner

D4 of the 2.1.00 plan (docs/MAJOR_GELISTIRME_PLANI.md).

Hunting used to pause as soon as no suitable animal was loaded within 64 blocks, which in practice meant a food goal stopped the campaign whenever the herds near the base had been eaten. With Baritone available, SurvivalTasks.HuntTask.search() now walks a fixed round of 16 lookouts around where the hunt started (eight on a ring 48 blocks out, eight at 96, clockwise from east) through the new GrindTravel.moveToColumn, which keeps moveNear's ownership, cancellation and stall rules. The first animal that comes into sight is hunted; an unreachable lookout is skipped and logged; after the full round it pauses with a clear message and forgets the origin so a resume starts a new round. Without Baritone the behaviour and the pause text are unchanged.

Tests:

  • HuntLookoutsTest (unit): lookout order, rings and spacing.
  • BaritoneCampaignGameTest.huntBeyondSight (real Baritone 1.19.0): with a four-chunk view distance, beef comes from a single cow 100 blocks away that the client had not loaded.

Local validation on this commit (Windows, JDK 25): ./gradlew build (943 tests, 0 failures), runClientGameTest (all client game tests; dedicated-server scenarios skipped without the EULA), the real-Baritone acceptance run and productionAddonInstallationTest all passed.

🤖 Generated with Claude Code

A food goal paused the moment no suitable animal was loaded within 64 blocks, even with Baritone installed to walk somewhere else (item D4 of the major plan).

HuntTask.search now walks a fixed round of lookouts around where the search began: eight on a ring 48 blocks out, then eight at 96, clockwise from east, so neighbouring lookouts are always within sight of each other. It travels through the new GrindTravel.moveToColumn, a column goal with the same ownership, cancellation and stall rules as moveNear; arrival is within three blocks, a lookout Baritone cannot reach is skipped and logged, and the scan for animals runs every tick on the way, so the first suitable animal ends the walk and is hunted as before. After the last lookout, about 160 blocks out, it pauses with a clear message and forgets its origin, so a resume starts a new round. Without Baritone the pause and its text are unchanged.

BaritoneCampaignGameTest.huntBeyondSight removes every animal, places one cow 100 blocks down the corridor, which at a view distance of four chunks the client has not loaded, checks nothing is in sight, and requires the hunt to bring back beef. HuntLookoutsTest pins the rings and their spacing. Release as 2.0.08.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TGuJsde5s6BFqgC63uNGrh
Copilot AI balanced review requested due to automatic review settings October 10, 2026 08:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MrHakan
MrHakan merged commit a4956ff into main Oct 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants