Skip to content

refactor: change recipes to be an object where keys are their resource identifiers#37

Merged
Snowiiii merged 2 commits intoPumpkin-MC:masterfrom
Laptop59:keyed_recipes
Apr 9, 2026
Merged

refactor: change recipes to be an object where keys are their resource identifiers#37
Snowiiii merged 2 commits intoPumpkin-MC:masterfrom
Laptop59:keyed_recipes

Conversation

@Laptop59
Copy link
Copy Markdown
Contributor

If we want to be able to implement recipe books later, we need to store recipes by ID in the player for the recipe book they have. Currently, the generated advancements.json file does not store the IDs of the recipe.

This PR changes the generated advancements.json from storing an array of recipes to storing an object having key-value pairs where the key is the resource identifier of the recipe to store (for example, minecraft:iron_nugget), and the value is the actual structure of the recipe, containing ingredients, output, their category, etc.

@Laptop59 Laptop59 changed the title feat: change recipes to be an object where keys are their resource identifiers refactor: change recipes to be an object where keys are their resource identifiers Mar 5, 2026
@Snowiiii
Copy link
Copy Markdown
Member

Snowiiii commented Apr 9, 2026

LGTM. Thank you @Laptop59 :D

@Snowiiii Snowiiii merged commit 478a25b into Pumpkin-MC:master Apr 9, 2026
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.

2 participants