AsherGlick / ResourceCalculator

A Video Game Resource Calculator
https://resourcecalculator.com
GNU General Public License v3.0
56 stars 30 forks source link

Minecraft Item Ordering #129

Open AsherGlick opened 1 week ago

AsherGlick commented 1 week ago

Over the last few patches the new items have been added onto the end of the calculator. At some point in the future, probably not until after the summer at the soonest. We should take a look at reordering the items to match some sane order. One option is the ingame creative menu.

We already scrape the creative menu to get all of the item images, and we can build a list of the order of those items. Then compare that order against the resources yaml order.

The tricky part will be the amount of manual work to reorder the yaml file. Minecraft has over a thousand items, and I don't want to reorder all that myself by hand. So either we have some brave soul reorder things, or we automate it. If we automate it we would have to manually re-apply any yaml comments because yaml does not normally preserve comments during the ingress egress pipeline.

There are not too many comments, and it is probably a good idea if we get rid of them anyways because the gui editor is going to destroy them anyways. So we should add some schema into the yaml for the comments we want to preserve as data, and then get rid of the rest.

If you are a brave soul reading this and want to try to manually reorder the minecraft resource list then here is the ordering as of 1.21. This includes all the items on the creative menu which is more than we have in the calculator: item_ordering.json