minecraft-data icon indicating copy to clipboard operation
minecraft-data copied to clipboard

get recipes from recipes json asset

Open rom1504 opened this issue 7 years ago • 3 comments

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)

rom1504 avatar Jun 23 '17 14:06 rom1504

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)

rom1504 avatar Jun 27 '17 09:06 rom1504

How does their format work when the output has more than one item (e.g. for wood => 4 wood slabs)

roblabla avatar Jun 27 '17 11:06 roblabla

@roblabla https://gist.github.com/rom1504/df6d10dcf62cbc0e5068918297ee8f4b

rom1504 avatar Jun 27 '17 11:06 rom1504