Repository navigation
Boxed II: world templates, areas and box cleanup - #145
Merged
Merged
Conversation
World creation - The seed world is captured once into a template file per area and dimension, then unloaded. Later boots only open the file. Blocks are read from disk on demand and only biomes are kept in memory, so the first boot takes about half a minute and the server no longer needs 12 GB. - Biome providers list only the biomes they can produce, and the generator gives a fixed spawn, so the server does not search before generating. Areas - areas.yml defines areas, each with its own seed, biomes and structures. An area owns one row of the box grid and its blueprint bundle picks it. - A player has one box per area. An area can require another, unlocked at a box size set per area. Locked areas show in the picker but cannot be chosen, and closed or unbuilt ones are hidden. - A new box is put at the height that lands the starter blueprint's spawn sign on the area's ground. - /boxadmin areas lists, visits, creates, rebuilds and cleans areas. - /boxadmin place works anywhere in a box position and accepts ground and surface for y. Boxes - A deleted box's position is restored from the template and used again. - Advancements count towards the box the player is in. Those handed back when a player moves between boxes are ignored, and a player with several boxes is brought in line with the box on arrival. - Unnamed boxes are listed by their area. Needs BentoBox 3.25.0 for the game mode hooks this uses. Worlds made by earlier versions are not compatible. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
Boxed asks InvSwitcher for separate advancements, and for separate advancements and inventory for each of a player's boxes, and asks Border to return players who leave their box. Admins no longer have to set these up. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
- Close the template writer and thread pool on every path. A failed build could leave the temporary file open. - Compare the contents of arrays held in records - Read nullable values once before using them Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Reworks how Boxed makes its world, and adds areas so a server can offer more than one kind of land.
Depends on BentoBoxWorld/BentoBox#3145. The build fails until that is merged and a 3.25.0 snapshot is published. Worlds made by earlier versions are not compatible.
World creation
Areas
areas.ymldefines areas, each with its own seed, biomes file and structures file. An area owns one row of the box grid, and its blueprint bundle picks it.unlocks-next-at, which may be 0).[spawn_here]sign on the area's ground./boxadmin areaslists, visits, creates, rebuilds and cleans areas./boxadmin placeworks anywhere in a box position and acceptsgroundandsurfacefor y.Boxes
Helper addons
Known gaps
en-UShas the new locale keys.Testing
🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git