Jump to content

Recommended Posts

Posted

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!

Posted

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

Posted

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.

Posted

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

Posted

W-W-W...WAIT? WHAT?

 

GameRegistry.addRecipe(RecipeSorter.register("Amnesia:lantern", LanternRefuelRecipe.class, Category.SHAPELESS, "after:minecraft:shapeless"));

 

That throws an error.

Posted

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!

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.