Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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!

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

  • 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.

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

  • Author

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

 

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

 

That throws an error.

  • 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!

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.