minecraft-data
minecraft-data copied to clipboard
get recipes from recipes json asset
Yes mojang now store the recipes as json. Finally.
So we can just take that and convert it to our format (for 1.12 at least)
their format https://gist.github.com/rom1504/006a8109d74611b1a25d67272d6b4f20 is definitely more explicit and clear than our format https://github.com/PrismarineJS/minecraft-data/blob/master/data/pc/1.12/recipes.json#L5360 might need some more preprocessing for usage though (compared to ours)
How does their format work when the output has more than one item (e.g. for wood => 4 wood slabs)
@roblabla https://gist.github.com/rom1504/df6d10dcf62cbc0e5068918297ee8f4b