Skip to content

Make the workshop into an area without a restart - #152

Merged
tastybento merged 3 commits into
feature/spot-finderfrom
feature/workshop-make
Nov 26, 2026
Merged

tastybento merged 3 commits into
feature/spot-finderfrom
feature/workshop-make

Conversation

@tastybento

Copy link
Copy Markdown
Member

Stacked on #151. This is step 3 of the area workshop.

What it does

/boxadmin areas make turns the workshop into an area in two parts, so the admin sees what they are about to make:

  1. Copy and check. The land of each dimension is copied a column of chunks at a time, so the server keeps running. Boxed then works out how far a box can grow in it and shows the result. Nothing players can see has changed.
  2. Confirm. The area is written to areas.yml, given a row, its land and a blueprint bundle, and players can pick it straight away. The workshop closes and its worlds become the area's seed worlds.

An existing area can have its land replaced, but only while no player has a box in it. It keeps its row, structures file and chaining rules. Land of the old kind that was already generated in its row is put right by the box cleaner.

Supporting changes

  • TemplateBuilder.buildAsync: the non-blocking copy. The blocking build is still used at startup.
  • AreaManager.put: adds or replaces an area while the server runs.
  • AreaCheck: the reachability check, moved out of the areas check command so both use it.
  • The console can pick a place with areas spots <number>.

Testing

  • 18 new unit tests; 367 pass in total.
  • On a Paper 26.3 server, from the console:
    • A new area: land copied in about 35 seconds with the server running, the check result shown, area made, listed with its own row, and its seed worlds in place.
    • A restart: the new area loaded from its files with no rebuild, and areas check gave the same result as before.
    • Replacing an existing empty area: its seed, biome style and land changed and it kept its row.
  • Not tested: the dialogs, and a player actually getting a box in an area made this way. Both need a player.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git

tastybento and others added 3 commits November 26, 2026 10:24
/boxadmin areas make copies the land of the workshop, works out how far
a box can grow in it and shows the admin the result. When they confirm,
the area exists straight away: it is written to areas.yml, given a row,
its land and a blueprint bundle, and players can pick it. The workshop
closes and its worlds are kept as the area's seed worlds.

- TemplateBuilder.buildAsync copies the land a column of chunks at a
  time so the server keeps running.
- AreaManager.put adds an area, or replaces one, while the server runs.
- An existing area can have its land replaced, but only while no player
  has a box in it. Land of the old kind already generated in its row is
  put right by the box cleaner.
- The reachability check moved into AreaCheck so the areas check command
  and the workshop use the same code.
- The console can pick a place with areas spots <number>.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
Base automatically changed from feature/workshop-spots to feature/spot-finder November 26, 2026 18:35
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit a922e6f into feature/spot-finder Nov 26, 2026
3 checks passed
@tastybento
tastybento deleted the feature/workshop-make branch November 26, 2026 18:36
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