From da1fea556952717e4ef733ac63a1abd8f3c40b05 Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 24 Nov 2026 23:41:38 -0800 Subject: [PATCH 1/2] Make the Nether fortress work in boxes The reachability check missed the fortress in the default Nether because it looked for one in the structures file. A fortress is part of the land, so the check now reads nether bricks as the fortress and spawners as the mob they make. The game does not spawn fortress mobs in a copied Nether, so Boxed now swaps some of the mobs that spawn on nether bricks for wither skeletons, blazes and skeletons (world.nether.fortress-mobs). Areas can take their Nether from anywhere in the seed with nether-centre, and /boxadmin areas find now locates fortresses and suggests one. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git --- CLAUDE.md | 4 +- README.md | 16 +- src/main/java/world/bentobox/boxed/Boxed.java | 9 +- .../java/world/bentobox/boxed/Settings.java | 21 ++ .../java/world/bentobox/boxed/areas/Area.java | 5 +- .../bentobox/boxed/areas/AreaManager.java | 4 +- .../boxed/commands/AdminAreasFindCommand.java | 184 +++++++++++++++++- .../biomes/NetherSeedBiomeGenerator.java | 10 + .../boxed/listeners/FortressMobsListener.java | 111 +++++++++++ .../bentobox/boxed/reach/FortressSpot.java | 76 ++++++++ .../bentobox/boxed/reach/LandSurvey.java | 16 ++ src/main/resources/areas.yml | 5 +- src/main/resources/config.yml | 6 + src/main/resources/locales/en-US.yml | 1 + src/main/resources/requirements.yml | 8 +- .../bentobox/boxed/areas/AreaManagerTest.java | 4 + .../listeners/FortressMobsListenerTest.java | 169 ++++++++++++++++ .../boxed/reach/FortressSpotTest.java | 60 ++++++ 18 files changed, 693 insertions(+), 16 deletions(-) create mode 100644 src/main/java/world/bentobox/boxed/listeners/FortressMobsListener.java create mode 100644 src/main/java/world/bentobox/boxed/reach/FortressSpot.java create mode 100644 src/test/java/world/bentobox/boxed/listeners/FortressMobsListenerTest.java create mode 100644 src/test/java/world/bentobox/boxed/reach/FortressSpotTest.java diff --git a/CLAUDE.md b/CLAUDE.md index 670bded..e0f63ed 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -42,7 +42,9 @@ Never hold the whole region in memory or load the seed world on a normal boot ### Finding a place to start -`/boxadmin areas find [seed|random] [radius]` (`AdminAreasFindCommand`) looks for good spots in a seed. `reach/SpotFinder` searches the vanilla biomes (no chunks needed) for wooded land with water nearby; the best few are generated in a throwaway `/finder_