Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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

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