Posted March 2, 201510 yr I have had some reports of a custom recipe in my mod not working properly. I cannot reproduce it but I've seen others who can. It is a custom recipe which I created because I needed a recipe that matches only with an efficiency 3 enchanted diamond pickaxe. So I need the recipe to match on specific NBT data. Here is my custom recipe: https://github.com/McJty/RFTools/blob/master/src/main/java/com/mcjty/rftools/crafting/NBTMatchingRecipe.java and here is where I use it: https://github.com/McJty/RFTools/blob/master/src/main/java/com/mcjty/rftools/crafting/ModCrafting.java As it works for me it is a bit hard to debug. Can someone spot a mistake that I may have made here? Maybe there is some kind of mod interaction going on and in that case I'd like to make my recipe more robust. Thanks!
March 3, 201510 yr Author There is no crash. It is just not crafting. The recipe simply doesn't work. Anyway, I suspect I know what the problem is. It is possible that my NBT matching algorithm is too specific. It appears that an enchanted pickaxe made with 'x' key works fine while an echanted pickaxe made with an enchnated book and anvil doesn't. So I probably have to change my matching algorithm to only match the NBT keys that I want.
March 3, 201510 yr You should check only if the enchant tag is same, for Item's NBT can contain various information. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
March 3, 201510 yr Author Yes. I have now refined the custom recipe so that it only compares certain NBT tags and ignores the rest. Works much better now. Thanks!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.