Skip to content

Add biome styles and the first part of the area workshop - #150

Merged
tastybento merged 2 commits into
feature/spot-finderfrom
feature/area-workshop
Nov 26, 2026
Merged

tastybento merged 2 commits into
feature/spot-finderfrom
feature/area-workshop

Conversation

@tastybento

Copy link
Copy Markdown
Member

Stacked on #149. This is step 1 of the area workshop: the temporary worlds, the rules for players in them, and the biome styles the first dialog offers. Picking the centre from scanned spots, structure logging and making an area from the workshop come in later PRs.

Biome styles

  • BiomeLayout now reads the layout of chosen biomes. It keeps the per-quarter lists and adds rings, random patches, and blend, which bends the edges with noise.
  • biomes.yml is the "original" style and gives exactly the same result as before.
  • natural, rings, random and none ship in a new biomes folder. Admins copy one to make their own, and it shows up in the workshop by file name.

Area workshop

  • /boxadmin areas edit opens a dialog for the area to start from, the seed and the biome style, then makes a temporary world and takes the admin there.
  • Everyone who enters is put in creative mode and gets their old game mode back on leaving. Dying there respawns in place, in creative.
  • The worlds are peaceful with spawn limits of 0.
  • The workshop is saved on every change and reloaded with its worlds at startup. There is one at a time.
  • Discarding sends everyone inside to their box, then spawn, and deletes the worlds. Players who were offline inside are sent to their box when they next join.
  • Starting from an existing area with its seed and biomes unchanged copies that area's seed worlds, so hand edits are kept.
  • Everything can be typed (edit start, edit go, edit discard confirm), which is what the console uses.

Testing

  • 49 new unit tests; 324 pass in total.
  • On a Paper 26.3 server, from the console: start, restart with the workshop reloaded, Nether creation, start from an existing area (seed world copied and loaded), and discard (worlds and state file deleted, seed worlds untouched).
  • Not tested: the dialogs and the player rules in game. They need a player, and the dialog classes cannot run under MockBukkit.

The README's old biomes.yml section described height and scale settings that no longer exist, so it is replaced by the new "Biome styles" section.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git

tastybento and others added 2 commits November 25, 2026 08:31
Biome styles: the layout of chosen biomes around the middle of a box is
now read by BiomeLayout, which adds rings, random patches and blended
edges to the original per-quarter lists. biomes.yml is the "original"
style and is unchanged; natural, rings, random and none ship in the
biomes folder, and admins add their own there.

Area workshop: /boxadmin areas edit opens temporary worlds for trying
out a seed and a biome style. Players in them are put in creative mode,
the worlds are peaceful with no spawning, and the workshop survives
restarts until it is discarded. Dialog boxes drive it for players and
everything can be typed for the console. Picking the centre, structures
and making the area from it are not built yet.

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

Copy link
Copy Markdown

Base automatically changed from feature/nether-fortress to feature/spot-finder November 26, 2026 18:34
@tastybento
tastybento merged commit 5173a1b into feature/spot-finder Nov 26, 2026
3 checks passed
@tastybento
tastybento deleted the feature/area-workshop branch November 26, 2026 18:35
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