Repository navigation
Include Boxed's own advancements in the reach check - #160
Merged
Merged
Conversation
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
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
|
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.



Merge #159 first. This is built on it, so until then the diff here shows that work too.
What this does
/boxadmin areas checkonly 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.requirements.ymlgains 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.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.||, as inblock:chest || set:wood.How far to trust the model
The generated entries are a first guess and are meant to be corrected:
/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