Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add advancements/recipes json files #2

Merged
merged 1 commit into from Jul 11, 2020
Merged

Add advancements/recipes json files #2

merged 1 commit into from Jul 11, 2020

Conversation

drewhannay
Copy link
Owner

Turns out you're supposed to directly extend the Minecraft
RecipeProvider rather than extending the ForgeRecipeProvider class. The
Forge one overrides the saveRecipeAdvancement method to do nothing, so
these json files were never generated and the custom recipes weren't
showing up in the in-game recipe book when you got the correct
materials.

Now we extend the correct class in our generator and the files are
properly created. This also adjusts the criterion so that you only need
to have a lantern to unlock the recipes and not glass panes.

Turns out you're supposed to directly extend the Minecraft
RecipeProvider rather than extending the ForgeRecipeProvider class. The
Forge one overrides the saveRecipeAdvancement method to do nothing, so
these json files were never generated and the custom recipes weren't
showing up in the in-game recipe book when you got the correct
materials.

Now we extend the correct class in our generator and the files are
properly created. This also adjusts the criterion so that you only need
to have a lantern to unlock the recipes and not glass panes.
@drewhannay drewhannay merged commit 02f9b53 into master Jul 11, 2020
@drewhannay drewhannay deleted the recipes branch July 11, 2020 00:14
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.

None yet

1 participant