[FIXED 1.8.5] Replace recipes in the Book with new one
Dream-Master opened this issue ยท 17 comments
I remember we talk before about to change some of your recipes and add back a harder variant of it.
I try it before with Minetweaker and the recipes works well but not displayed in the Book.
(Minetweaker load recipes to late for be in the Book)
Now i try replace the recipes in my Core Mod and it works (the recipes is changed) but i get the following error.
Could not find ItemStack 1xitem.altarNexus@0 when registering recipe from registry.
What i can do to display the new recipes?
I using Gt Code for the recipe replace.
here is the code in the Core Mod.
GTNewHorizons/NewHorizonsCoreMod@23045fc
Most of the Core Mod is written by Namikon. So my Java knowledge isn't that big.
Thanks for help in advance.
I try this but this not working too. My Java knowledge is very small so maybe not understand what wildcards means.
GT_ModHandler.addCraftingRecipe(GT_ModHandler.getModItem("HardcoreEnderExpansion", "altar_nexus", 1L, 0), tBitMask, new Object[]{"DED", "EDE", "DED", Character.valueOf('D'), new ItemStack(Items.diamond, 1), Character.valueOf('E'), new ItemStack(Items.ender_eye, 1),});
http://jenkins.usrv.eu:8081/job/GT%20New%20Horizons%20-%20CoreMod/
Core mod (using last Build 153)
This Lib mod you need too:
http://jenkins.usrv.eu:8081/job/YAMCore/16/
I adding all important Mods i using in my test enviroment.
https://www.dropbox.com/sh/vzgbzqgp2j4etr7/AABLmFS6z7t39Rh5jJAaKODUa?dl=0
I changed the detection code in HEE 2, so if it works with that, I'll just port it back to HEE 1. If not, I'll try to figure out what's going on. Just need some time to test everything.
Okay, I can't run it because gregtech freezes in PostInit and uses almost all CPU power.
I tested the new recipe checking with Minetweaker, it seems to work fine now. I'll backport the solution to HEE 1, so then you can use MT to replace the recipes (they are only resolved first time you look at them, so reloading the scripts will not work).
Ok this sounds fine. Thanks. (But i guess only Shaped or Shapeless recipes will work not Gt machine recipes ?)
There's no support in the Compendium for custom layouts... I guess you could workaround it by replacing the recipe with one that uses an unobtainable item (like the question mark from HEE - item_special_effects:18) and give it a custom name that explains what to do.
Since you have a custom mod for this, you can add a custom fragment type, like https://github.com/chylex/Hardcore-Ender-Expansion/blob/1.7.10-v1.8.4/src/main/java/chylex/hee/mechanics/compendium/content/fragments/KnowledgeFragmentCrafting.java
and then take the obj from KnowledgeRegistrations and replace the fragment set (you will need to replace both fields, it's a bit hacky) https://github.com/chylex/Hardcore-Ender-Expansion/blob/1.7.10-v1.8.4/src/main/java/chylex/hee/mechanics/compendium/content/KnowledgeObject.java#L39-L40
Ok will try it and ask you if i have a question.
When Version 1.8.5 will be release ?