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

Hey there,

 

I want to make some recipes, everything works as expected. I have planks which are registered as plankWood in the Ore Dictionary to let them be easily used as material for basic wooden items like working bench, wooden tools a.s.o.

The problem I'm facing right now is that I have custom sticks and I want to use my planks to craft them, but if I "override" the current recipe for the wooden sticks with my own recipe for my own planks, it still gives me the wooden sticks as output. I also tried to register the recipe before the OreDictionary replaces the ore recipes, but with no avail.

The second thing I wanted to do is to override the ShapedOreRecipe for the wooden sticks in the recipes list with a custom class which extends ShapedOreRecipe, let it return my custom sticks when my planks are used and return the wooden sticks (return the super method) if my planks are not used. The problem with this method however is that if a mod does the same kind of thing I do, my recipe will be overwritten by the mods recipe or vice versa.

So what I'm asking is: Is there a way to "exclude" a specific recipe or overwrite it? Or something else which would work? Hints would be enough.

 

Sincerly, SanAndreasP

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

  • 6 months later...

I know that this is an old post but I'm still having this problem. Hopefully I'm not breaking any rules by doing this, but please let me know if I am. It's just a real serious problem and I can't seem to find any solution. :/

The enders are everywhere. You can't escape...

I cant think of any way to do this is a crafting table, but you could create your own version of the FurnaceRecipes.class and build a custom block to do it for you.

The thing is, I don't really want to create a whole new crafting table and recipes. I've thought about it but it doesn't suit my mod. Thanks anyway.

The enders are everywhere. You can't escape...

You do not really need to override it. CraftingManager sort his recipe.

So you need to do a custom craftingHandler. Not that from forge,

You simply make it like that you have your standart crafting recipe.

With 1 thing you set the recipe size to 1 then the craftingmanager sort it automaticly above the forge/vanilla stick recipes.

How lower the recipe size is that lower he put the recipes size and the lowest number comes first.

Actually i can not tell how you can make shaped shapless recipes in a custom craftinghandler. Just look at the normal shaped recipe.

 

I hope that helps.

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.