[Question] How to remove Chemical Lab recipes using CraftTweaker
lordfriend opened this issue ยท 8 comments
After search the code, old Techguns wiki. I can only add a new recipe to Chemical Lab.
By add this line I can added a new recipe to fill the fuel tank with gasoline.
mods.techguns.ChemLab.addRecipe(<techguns:itemshared:28>, 1, <minecraft:dirt>, 0, <liquid:gasoline> * 2500, false, <techguns:itemshared:27>, <liquid:water> * 0, 100);
if I want to remove the original biodiesel version fuel tank recipes the following code doesn't work. even I remove any other add chemical lab recipe codes.
mods.techguns.ChemLab.removeRecipe(<techguns:itemshared:27>, null);
neither this:
mods.techguns.ChemLab.removeRecipe(<techguns:itemshared:27> * 1, null);
Is it possible to push a hotfix for this instead of everything else?
Edit: it seems that recipe addition is not working too, I have the following script:
mods.techguns.ReactionChamber.addRecipe("Titanium", techguns:itemshared:78, liquid:argon, [<rockhounding_chemistry:metal_items:4>], techguns:itemshared:104, 3, 3, 7, 0, 10, 100, 0.0, "NONE", 4096);
@wormzjl If you have knowledge of Java, it's not too hard to fix this from source code. Since it seems the author of the mod is not very actively updating. I don't worry about compatibility with future versison.
I made two forks which may help you
One is only fixing dependency and FTB compatibility. So you can compile without issue and be able to use with the latest version of FTB lib and FTB utilities.
https://github.com/lordfriend/Techguns2/tree/dependencies_fix
The other one make future modification. like add super mutant to The End to make player harder to kill the dragon and nerf the jetpack in overworld/Neither/The End. Besides, add fluid configuration for chemical.
https://github.com/lordfriend/Techguns2/tree/my-server-enhance
Feel free to fork from any branch if it is helpful.
The author is still around, we shall wait.
If you have fixed something, IMO it's better to make a PR here.
I'm still around and I want to make a new release with bug fixes soon. @lordfriend if you make a pr to the fluid list from config file I'm going to merge that.
I have already updated the buildscript and code to new FTBlib.
As i heard, crafttweaker support is bugged atm.
Thing is, CT run BEFORE techgun's recipe registration. So, any recipe you ADD will be registered, because techgun will add recipes to one you made earlyer, but every recipe you REMOVE, will not be removed, because techgun will add recipe after you TRY to remove it.
Basicaly, you trying to remore recipe wich doens't yet exist.
Exactly that. This will be fixed in the next version, but I don't know when that is.