fix: start chunk farms from blocks beside the center #102

Merged
gecko merged 1 commit from t3/farm-center-adjacent-start into main 2026-11-03 18:18:57 +00:00
Owner

Summary

  • Let chunk preview, build, save and the bare chunk farm resolve the fixed 2x2-chunk center from the shared corner block or any directly adjacent block (within one block in X and Z).
  • Keep persisted farm centers canonical: FarmBounds.chunks still requires X and Z divisible by 16, while the new FarmBounds.chunkCenter snaps player input before preview/build/save.
  • Use the snapped center for supply-chest selection too, and update the README and command help.
  • Add unit coverage for cardinal/diagonal adjacency, rejection beyond one block, and strict canonical bounds.

Validation

  • ./scripts/ci-preflight.sh
  • ./gradlew --no-daemon --max-workers=1 "-Dorg.gradle.jvmargs=-Xms128m -Xmx1g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8" lint build
  • ./scripts/check-release-jar.sh
## Summary - Let chunk preview, build, save and the bare chunk farm resolve the fixed 2x2-chunk center from the shared corner block or any directly adjacent block (within one block in X and Z). - Keep persisted farm centers canonical: `FarmBounds.chunks` still requires X and Z divisible by 16, while the new `FarmBounds.chunkCenter` snaps player input before preview/build/save. - Use the snapped center for supply-chest selection too, and update the README and command help. - Add unit coverage for cardinal/diagonal adjacency, rejection beyond one block, and strict canonical bounds. ## Validation - `./scripts/ci-preflight.sh` - `./gradlew --no-daemon --max-workers=1 "-Dorg.gradle.jvmargs=-Xms128m -Xmx1g -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8" lint build` - `./scripts/check-release-jar.sh`
fix: start chunk farms from blocks beside the center
All checks were successful
build / Java 25 build (pull_request) Successful in 3m44s
94cec47969
Preview, build, save and the bare chunk farm now resolve the fixed 2x2-chunk center from the shared corner block or any directly adjacent block. Persisted centers stay canonical because FarmBounds.chunks still validates X and Z alignment.
gecko merged commit cbaeab73f9 into main 2026-11-03 18:18:57 +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!102
No description provided.