Automatically generate and append recipes to blocks #14
+6,192
−364
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.
Since the wiki has some missing information related to recipes, I've been wanting to add something to automatically generate and add the recipes for quite a lot.
While looking at the source code, I noticed that there was already a script to automatically read all the recipes and append them to the correct machine, so I decided to augment it to also do the opposite. In this way, it will be much easier to keep the wiki up-to-date with all the changes to the recipe.
In the process, I also did a couple of small extra tweaks:
One small issue, not related to this change, is that there are some missing images for the blocks introduced in the latest Minecraft versions (for example, the Crafter). I tried to check on the Minecraft wiki if there was an updated spritesheet, but there wasn't. I will try to see if I'm able to generate an updated version by myself.
Last but not least, given the size of the changes, for now I only standardized the blocks, so that you can also have a look and tell me if you think the change makes sense. If you think it's ok, I will proceed also with the items (I expect much more changes there).