Adding a second recipe for one item

Place to get help with not working mods / modding interface.
Post Reply
Paned
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Mar 13, 2016 10:02 am
Contact:

Adding a second recipe for one item

Post by Paned »

Hi there :)

I would like to add a second recipe for the item iron-plate.

If i just use this:

Code: Select all

  {
     type = "recipe",
	 name = "iron-plate",
	 category = "smelting",
	 energy_required = 20,
	 enabled = true,
	 ingredients = 
	 {
	   {"iron-dust", 1}
	 },
	 result = "iron-plate",	 
  }
i only can smelt it by having iron-dust


and i got a second question too..

is there any way to update my save game? I do not like to play every time i would like to try my mod until i'm prepared for building everything i need..

thank you ::)

Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Adding a second recipe for one item

Post by Choumiko »

change the name of the recipe to something other than iron-plate. The way you have it right now overwrites the original one.

As for updating, there are either migration files (https://wiki.factorio.com/index.php?tit ... on_scripts) or a console command: /c game.local_player.force.reset_recipes() (https://wiki.factorio.com/index.php?tit ... et_recipes)
You have to restart Factorio when you make changes to recipes, etc.

Paned
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Mar 13, 2016 10:02 am
Contact:

Re: Adding a second recipe for one item

Post by Paned »

yes, i know that it overwrites it.
But i like to simply add a second recipe for it - just to use it after that process as the vanilla iron-plate.

If i add my own item it will not be the iron-plate and i have to update every recipe of the game. i do not like to do that ;)
maybe there is a other way to "transform" my item after the smelting process to the iron-plate?


Thank you with your help about the update thing :)

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Adding a second recipe for one item

Post by prg »

Don't add your own item, just change the name of the recipe and leave the result as it is.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Paned
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Mar 13, 2016 10:02 am
Contact:

Re: Adding a second recipe for one item

Post by Paned »

Baaam ... im an idiot..
thank you XD

Post Reply

Return to “Modding help”