Skip to content

Include Boxed's own advancements in the reach check - #160

Merged
tastybento merged 4 commits into
developfrom
feature/reach-all-advancements
Nov 30, 2026
Merged

tastybento merged 4 commits into
developfrom
feature/reach-all-advancements

Conversation

@tastybento

Copy link
Copy Markdown
Member

Merge #159 first. This is built on it, so until then the diff here shows that work too.

What this does

/boxadmin areas check only knew the game's own advancements. It now also knows the 404 that Boxed adds, so its answer covers everything a player can earn in an area.

  • A model of each one. requirements.yml gains an entry for every Boxed advancement. They were produced by a new tool, tools/derive_requirements.py, which reads what each advancement asks for and traces it through the game's recipes and loot tables back to blocks, mobs, biomes and structures. "Eat cake" becomes iron for a bucket, a cow, sugar cane or bees, wheat and a chicken.
  • A curve. The check writes areas/<area>/reach-curve.csv: for each box size, how many advancements are within reach of a box that big. The report says where a box would run dry.
  • Sets as alternatives. A set that is a single need can be used after ||, as in block:chest || set:wood.
  • Animals. The model said cows, sheep, pigs and chickens come with any grass. That rule is gone; the animals that are really in the land are counted.

How far to trust the model

The generated entries are a first guess and are meant to be corrected:

  • They take the simplest way of getting each thing.
  • They ignore tools, enchanting levels and the time things take.
  • Of the 404, 378 were traced, 21 are marked as impossible in Boxed (the End, the void, structures that cannot be placed) and 5 need nothing.
  • Structure advancements assume the structure is placed with /boxadmin place, because the game's own check does not see copied land as a structure.

What it shows, on one test area

With every advancement worth 1 point, the box grows to 319 of 320: 318 earned, 182 impossible there. But 61 advancements are within reach of a box of size 1, from the starter blueprint alone, so there is no tight start.

Testing

5 new unit tests, 458 in total, all pass. The check was run on a Paper 26.3 server from the console with today's scores and with all ones. The model's entries have not been checked one by one against play.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git

tastybento and others added 4 commits November 28, 2026 11:01
The reach check and the spot finder both assumed too much.

- Mobs that turn up anywhere were counted from a box of size 1. Boxed
  does not let mobs spawn outside a box and the game does not spawn one
  within 24 blocks of a player, so a small box has none. requirements.yml
  now gives each a box size, and 'kill a mob' needs a monster.
- The items in the starter blueprint's chests were not counted. They are
  now, by name, with the blueprint's blocks.
- The check reports what the blueprint gives and which advancements can
  be earned with it alone, to show when a start is too easy.
- The spot finder counts the chest and the blueprint's blocks within 20
  of the spawn sign towards a place's score, and no longer insists on
  wooded land when the blueprint has a tree or a sapling.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
The check only knew the game's advancements. It now knows the 404 that
Boxed adds, so its answer covers everything a player can earn.

- requirements.yml has an entry for each of them, worked out by
  tools/derive_requirements.py from what the advancement asks for, the
  game's recipes and its loot tables. They are a first guess, to be
  corrected by hand.
- A set that is a single need can be one of several ways, as in
  'block:chest || set:wood'.
- Boxed's own advancements score what an unlisted advancement does.
- Farm animals no longer come with grass. The animals that are really
  in the land are counted.
- The check writes reach-curve.csv, the number of advancements within
  reach at each box size, and the report says where a box would run dry.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
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 5e053e6 into develop Nov 30, 2026
3 checks passed
@tastybento
tastybento deleted the feature/reach-all-advancements branch November 30, 2026 01:00
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