andrewminer / crafting-guide

The ultimate step-by-step guide to make anything in Minecraft
http://crafting-guide.com
66 stars 192 forks source link

Add Support for FTB Infinity Expert Mode #212

Open mellamokb opened 8 years ago

mellamokb commented 8 years ago

It would be awesome to add support for modpacks that overhaul the original recipes for a mod. For example FTB Infinity Expert Mode. I started building a recipe library by hand in JSON for expert mode and was working on a C#-based resource calculator, when I stumbled on your incredible project here... I see I've been going about it the wrong way doing it by hand! As an ultimate test, it should be possible to calculate the resource requirements of a Creative Tank. Warning: it is a very, very large amount of resources and recipes that go into it :)

andrewminer commented 8 years ago

You're not the first person to ask about this. My suggestion (though I can't find the issue now) was to do the following:

  1. Create a new dummy mod called "FTB Infinity Expert Mode". It shouldn't add any items or recipes. It's just there as a placeholder.
  2. For each recipe modified by expert mode, find that recipe in the proper mod's mod-version.cg file and add an onlyIf: not mod FTB Infinity Expert Mode to it, and then add a second recipe with the modified recipe containing the line: onlyIf: mod FTB Infinity Expert Mode.

With all of that in place, when a visitor to the site elects to enable the FTB Infinity Expert Mode mod, it will automatically disable the standard recipes and activate the modified ones.

For full instructions on modifying data files, check out the wiki.

dragagon commented 8 years ago

The suggestion was on https://github.com/andrewminer/crafting-guide-data/pull/10 because i asked the same thing. I'm almost done with Immersive engineering 0.7.1.2 (also good through 0.7.3 since those were bug fixes and 2 new shaders)