Posted July 6, 201411 yr I have a custom recipe that WORKS while useing: GameRegistry.addRecipe(new LanternRefuelRecipe()); But that throws me an error: Unknown recipe class! com.fluffy.amnesia.handler.LanternRefuelRecipe Modder please refer to net.minecraftforge.oredict.RecipeSorter So i just updated my code: RecipeSorter.register("Amnesia:lantern", LanternRefuelRecipe.class, Category.SHAPELESS, "after:minecraft:shapeless"); Its now STOPPED working. No error, crash, just there is no crafting resoults. My Recipe class: http://pastebin.com/3VkyTC1F In the modder forum nobody has clue why is that. It mayebe a bug or it just not that simple how i tought it is. Useing forge .1159! Thanks!
July 6, 201411 yr It looks okay to me, however, does the code itself run at all? If you are satisfying the recipe with another recipe earlier in the sort list then it'd work fine. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
July 6, 201411 yr Author Okey just checked out! If im using the RecipeSorter registration my custom Recipe class never runs. With the bad register way it runs. I checked out the list and it matches how it should look like.
July 6, 201411 yr Toss your mod source this way or atleast a small sample to reproduce the issue and i'll see what I can do tonight. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
July 6, 201411 yr Author W-W-W...WAIT? WHAT? GameRegistry.addRecipe(RecipeSorter.register("Amnesia:lantern", LanternRefuelRecipe.class, Category.SHAPELESS, "after:minecraft:shapeless")); That throws an error.
July 6, 201411 yr Author Um........... Sorry guys for wasting your times. I tought RecipeSorter.register replaces .addRecipe() in case of custom recipes. Problem sloved, thank you very much guys!
July 6, 201411 yr No, RecipeSorter needs to register your Recipe CLASS ONCE. So it know how to sort future instances of that class. Shaped comes before shapeless etc.. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.