Skip to content

Add a finder for good places to start a box - #148

Merged
tastybento merged 2 commits into
feature/reachabilityfrom
feature/spot-finder
Nov 26, 2026
Merged

tastybento merged 2 commits into
feature/reachabilityfrom
feature/spot-finder

Conversation

@tastybento

Copy link
Copy Markdown
Member

Stacked on #147 (it uses the land survey from there). Merge #147 first, then this can be retargeted to develop.

What it does

/boxadmin areas find <area> [seed|random] [radius] looks through a seed for good places to start a box, so the seed and spot no longer have to be found by trial and error.

  1. Biome search. The vanilla biomes of the seed are searched on a 64-block grid (no chunks are generated) for wooded land with a river or the sea a short walk away.
  2. Land survey. The land around the best dozen places is generated in a throwaway world, using the area's biomes file laid out around each place, and scored out of 100: dry land in the middle, then how small a box takes in logs, water at the surface, stone near the surface, iron ore and coal.
  3. Report. The three best are shown and the full list is written to areas/<area>/spots.txt. When the area's own seed is searched, the place it uses now is scored too for comparison.

The throwaway world is unloaded without saving and deleted, along with any left behind by a search the server stopped in the middle of.

New area setting

centre: x,z in areas.yml sets where in the seed the middle of every box is taken from (default 0,0, as before). It applies to the overworld. The Nether is still taken from 0,0. Changing it needs /boxadmin areas rebuild <area> regenerate and a restart, like a change of seed.

Testing

  • 12 new unit tests (search, scoring, the centre setting); 261 pass.
  • Run on a Paper 26.3 server: a 5000-block search takes about 13 seconds; the default seed's 0,0 scores 98. The default area was then rebuilt at a found place (1664,1536) and /boxadmin areas check ran against it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git

tastybento and others added 2 commits November 24, 2026 22:50
/boxadmin areas find <area> [seed|random] [radius] searches the biomes
of a seed for dry, wooded land near water, generates the land around the
best places in a throwaway world and scores each for how soon a box there
holds logs, water, stone, iron ore and coal.

Areas can now take their land from anywhere in their seed with a new
centre setting in areas.yml, so a place that is found can be used.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit aa301b1 into feature/reachability Nov 26, 2026
3 checks 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.

1 participant