Skip to content

Add survival and interaction tools with non-destructive navigation - #275

Open
chrisb-prime wants to merge 5 commits into
yuniko-software:mainfrom
chrisb-prime:survival-interaction-drop
Open

chrisb-prime wants to merge 5 commits into
yuniko-software:mainfrom
chrisb-prime:survival-interaction-drop

Conversation

@chrisb-prime

@chrisb-prime chrisb-prime commented Nov 15, 2026 •

Copy link
Copy Markdown

Changes

  • Add eating, explicit-bed sleeping/waking, and survival status using native Mineflayer APIs.
  • Add block/entity interactions, entity IDs, mount/dismount, and exact-count item dropping, including full stacks. Validate inputs and report failed or partial actions clearly.
  • Make navigation and automatic approaches non-destructive: no digging, scaffolding, or towers. Intentional digging equips the fastest suitable available tool after approaching, with fallback tools and hand mining supported.
  • Allow collision-clear passage through already-open doors, stop timed-out movement immediately, and expose block state/collision details for diagnostics.
  • Approach digging from a safely reachable position with a visible target face. Support non-colliding plants such as sugar cane without automatically clearing foliage or harvesting whole columns.
  • Document the new tools and behavior using the existing connector structure.

Validation

Offline tests use mocks and real Minecraft block data/raycasts without connecting a bot. They cover survival/interactions, full-stack dropping, safe navigation, door collisions, tool selection, reach/occlusion, plant targeting, cancellation, and partial failures.

The full PR suite passed with 176 tests before the test-only cleanup. After consolidating redundant cases, the two changed suites passed with 43 tests; the current complete suite contains 172 cases. Build, type-check, and lint passed before cleanup; type-check, targeted lint, and diff checks also passed afterward.

Live Java 1.21.11 play with the bot controlled through GitHub Copilot confirmed eating, sleeping, exact-count dropping, iron-axe selection, and the digging fixes. The bot reached a previously rejected canopy log while still rejecting genuinely obscured targets. Sugar-cane harvesting preserved all 13 planted bases and collected 26 upper pieces. Ordinary age-7 wheat harvesting and replanting also worked during gameplay; the later local placement-compatibility changes are not included in this PR.

Navigation observations

During the original doorway failures, the user saw the bot open the door and climb the roof-access ladder instead of exiting. The ladder was later removed. Offline investigation independently reproduced pathfinder treating open doors as solid obstacles; the ladder was not established as the root cause.

An outward doorway traversal succeeded after the fix, but later doorway routing remained intermittent and direct movement was used as a workaround. A separate carpet-over-fence attempt reported movement success while the bot remained inside; offline investigation found an upstream empty-path completion bug, whose correction is not included here.

Local chest, hopper, furnace-cycle, and placement-replacement additions remain outside this PR.


chrisb-prime and others added 5 commits November 15, 2026 00:29
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

1 participant