refactor!: farm and build jobs on fixed sweep routes #108
Loading…
Reference in a new issue
No description provided.
Delete branch "t3/farm-pathing-architecture-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Architecture cleanup plus a systemic rewrite of farm movement, harvesting and building.
BotModulesplit. The 3,461-line module now holds settings, the job slot, survival interrupts and event routing.FarmJobandBuildJobown their stages, processes and actions;ChestTrip(open/re-send/verify),Interaction(server-observed aims and rays) andLagClockare shared.FarmProcess. A recorded build-farm run showed 42 HARVEST↔COLLECT flips in five minutes, about 3.8 plants/s, and a farmer stall with 570 empty cells. Both modes now walk fixedSweepRoutelanes through oneSweepTraversal.tool-swings(default 2) swings in flight on disjoint tiles. Tiles confirmed in a pass wait for the next one, so regrowth can't pin the bot. Fragments never clip intact tiles (an irrigation-centered tile previously cascaded into ~180 misaligned swings). One-pass jobs confirm their last swings before completing.INVENTORY_FULLon the third water trip), and return leftover materials (never tools or seeds) before verification. Material swaps no longer displace AutoEat's hotbar food.setuptemplate no longer writes the removedfarmRangekey.logs/(written by test runs) is now ignored.Breaking change
farm save <name> <radius>, preview sizes, and thebuild-farm/preview-farmaliases are gone.wart1).farmRangeis rejected with a pointer to the fix.farm-seed-reserveandfarm-idle-timeout.New tunables (push the anti-cheat limits, tune down if needed)
harvest-intervalplant-intervaltool-swingsbuild-intervalWith both intervals at 1, a normal-mode cell is broken and replanted in the same tick.
Evidence
Server-free simulations with vanilla walking physics, pickup box and delay, drop scatter, and rays blocked by ripe crops:
Not tested live. The aim/movement coupling, server-side anti-cheat response to the faster defaults, the build pipeline and chest flows have only been exercised by unit tests and simulations.
Validation
Tested commit:
7a5fc8eAll passed locally (lint clean, 256/256 tests, jar boundaries verified).
CI run (
build.ymlon7a5fc8e): https://git.glitched.systems/gecko/mcbot/actions/runs/887