Item that can only be smelted in specific furnace
Item that can only be smelted in specific furnace
I want to make an item that can be smelted in a furnace but I also want to add a furnace that are the only furnace that can amekt that item. Any tips?
Re: Item that can only be smelted in specific furnace
Check the "chemical-plant" definition in data/base/prototypes/entity/entities.lua. It belongs to the type same as assemblers do, but has completely different set of recipes available due to:
If you check the furnace definition in the same file, you'll see that furnaces support this field as well.
You'd just need to add your own recipe category
and put your recipe into it
Since no other furnace has this category in their definition, your will be the only one capable of working on the recipe.
Code: Select all
crafting_categories = {"chemistry"},
You'd just need to add your own recipe category
Code: Select all
{
type = "recipe-category",
name = "only_my_furnace_category"
},
Code: Select all
{
type = "recipe",
name = "my_special_recipe",
category = "only_my_furnace_category",
...
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: Item that can only be smelted in specific furnace
Thanks. That was all I needed to know 
