Jump to content

[Solved] How can I make custom furnace recipes require 2 items to smelt


Recommended Posts

Posted

Good day once again!

I'm working on a "chemistry" mod and I made a machine which is supposed to extract elements from water, lava, iron, etc.

Basically now I want to make so it requires 2 items to start smelting for only some recipes.

Posted

If you've made custom furnaces before, then you should be able to do it. Think of it like this: vanilla furnace already requires 2 items to smelt, fuel and ore. All you need to do is add an extra slot to the container and update the tile entity canSmelt, smeltItem, etc. logic to take the extra slot into account.

 

 

As for the recipes, look at how vanilla furnace smelting recipes are set up, in a HashMap with a List of Integers as the key to return an ItemStack. The key (list of integers) stores both the id and metadata value of the 'input' ItemStack, but since it's a List, there's nothing stopping you from storing 2 or more ItemStack's worth of information in there. You just need to update the logic and methods to handle it.

 

If you need a more concrete example, take a look here: http://www.minecraftforum.net/topic/1961477-multi-inputoutput-furnace-with-variable-input-recipes/ Be forewarned I don't cover the basics of furnaces there; for that I recommend you check out courses.vswe.se which covers many things about tile entities and other stuff.

Posted

Thanks for the reply, but I think you didn't understand my question :)

I have 4 slots in my machine

1. Item input

2. Cell input (it is always the same item)

3. Fuel slot

4. Output slot

 

Now I'll give you an example:

I have 1 Item that will go into the 1st slot. Now for the recipe, I require 2 cells that will go into the 2nd slot. Of course I will need some fuel, that will go into the 3rd slot.

 

Simply, I want it go something like this, but only for certain recipes:

zqwf.png

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

×
×
  • Create New...

Important Information

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