Repository navigation
2.0.08: look for animals with Baritone instead of pausing when none are in sight - #22
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 newGrindTravel.moveToColumn, which keepsmoveNear'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 andproductionAddonInstallationTestall passed.🤖 Generated with Claude Code