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

  • Author

okay, forgive me for not going into further detail. I am wanting a way to make custom recipes ONLY in a new block. as in, you can only craft these items in this block. Like how IC2 has recipes for coal dust in a macerator. or railcraft has the rail recipes for the rolling machine.

 

I am making a Block called "Oven" and want it to be the ONLY way to cook certain foods. so you cant toss them in a furnace and get the same result.

Heh, for my infusion table I'm doing such things like this:

 

public interface IInfusionRecipe {
public ItemStack[] getRecipe();

public ItemStack getResult();

public int getCraftingDuration();
}

 

And then there is also a InfusionManager that I wrote that checks if the itemstacks in the inventory of the block are equal to an infusion recipe added to the manager.

Hi

 

In that case, you could create your own version of the furnace that uses its own set of recipes separate from the furnace recipes.  The vanilla code for the furnace and the smelting recipes should be a good source of clues on what you need to implement, in particular FurnaceRecipes and ContainerFurnace.

 

-TGG

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.