Skip to content

Make the Nether fortress work in boxes - #149

Merged
tastybento merged 2 commits into
feature/spot-finderfrom
feature/nether-fortress
Nov 26, 2026
Merged

tastybento merged 2 commits into
feature/spot-finderfrom
feature/nether-fortress

Conversation

@tastybento

Copy link
Copy Markdown
Member

Stacked on #148, which is stacked on #147.

Why

Blaze rods and wither skulls only come from a fortress. The reachability check reported that the default area had none, which made eight advancements impossible. Two things were actually going on:

  • The check was wrong. It looked for a fortress in the structures file. A fortress is built by the game from code, not from structure files, so it can only be part of the land. The default Nether has one.
  • A copied fortress is only half a fortress. Blaze spawners are copied with the land and work. Wither skeletons are not spawned, because the game only spawns them inside a real fortress's bounds.

What changed

  • Reachability model. Nether bricks in the land count as the fortress, and a spawner counts as the mob it makes. The default area now earns 76 advancements for 440 points (was 66 for 376).
  • Fortress mobs. A new listener swaps some of the natural spawns on nether bricks in the game Nether for wither skeletons, blazes and skeletons, at vanilla fortress weights and light levels. world.nether.fortress-mobs in config.yml turns it off.
  • nether-centre: x,z in areas.yml sets where in the seed the Nether of an area is taken from (default 0,0, as before).
  • /boxadmin areas find now also locates the fortresses nearest the middle of the seed's Nether, generates each in a throwaway world and suggests a nether-centre on open ground just clear of a blaze spawner.

Testing

  • 14 new unit tests; 275 pass.
  • On a Paper 26.3 server the find command suggested nether-centre: 272,128 (fortress at size 12, blaze spawner at size 34). The default area was rebuilt there and the reachability check reported the same two sizes.
  • The mob swapping is covered by unit tests only. It needs a player in the Nether to see natural spawns, so it has not been seen working in game.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git

tastybento and others added 2 commits November 24, 2026 23:41
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit a5399b6 into feature/spot-finder Nov 26, 2026
3 checks passed
@tastybento
tastybento deleted the feature/nether-fortress branch November 26, 2026 18:34
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