Change Item Crafting Speed?
Change Item Crafting Speed?
How can I change the crafting speed of new items I've made for my mod?
Factorio Modder
Solar Expansion
Solar Expansion
Re: Change Item Crafting Speed?
Ever notice the energy_required = line in recipes? While I don't know what the default (the speed of basic transport belt crafting) is basic bullets are 2, red science packs are 5, green packs are 10, and blue 20. That should give you enough of an idea to let you decide how fast you want your items crafted.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me

Or drop into #factorio on irc.esper.net
Re: Change Item Crafting Speed?
The default is 1, more here.
https://forums.factorio.com/wiki/inde ... y_required
https://forums.factorio.com/wiki/inde ... y_required
Re: Change Item Crafting Speed?
Oh, sweet! Thank you! Calling it "energy_required" is a little misleading if its not in reference to a furnace or automated crafting thingy. But I get it now so that works!
Factorio Modder
Solar Expansion
Solar Expansion
Re: Change Item Crafting Speed?
Maybe i'm doing someting wrong here i set energy_required up to 20 and my items are still instand crafted ?
Code: Select all
{
type = "recipe",
name = "shell",
enabled = "false",
energy_required = 20,
ingredients =
{
{"iron-plate",4},
{"copper-plate", 2},
{"steel-plate", 2},
{"coal", 10}
},
result = "shell"
}
Re: Change Item Crafting Speed?
Thats something that has been bugging me for some time, I asked about it some time ago, and I think it is a bug now that you also experience it.
When I added for first time a recipe, it was instacrafting, and I noticed energy_required was really low, so I raised it, and nothing happened, I asked in the forums but nope, and when I reinstalled factorio totally because of an update, and then it worked fine w/o changing anything.
When I added for first time a recipe, it was instacrafting, and I noticed energy_required was really low, so I raised it, and nothing happened, I asked in the forums but nope, and when I reinstalled factorio totally because of an update, and then it worked fine w/o changing anything.
Re: Change Item Crafting Speed?
I believe, that it will affect new games.
For existing saves you need to write
or
To copy the new recipe properties to the player recipes.
For existing saves you need to write
Code: Select all
game.player.force.reloadrecipes()
Code: Select all
game.player.force.recipes["shell"].reload()
Re: Change Item Crafting Speed?
Nope even deleting and reistalling Factorio solves that issue, quiet anoying
Re: Change Item Crafting Speed?
That is strange, I never encountered problem that would need to reinstall the whole Factorio.Animar wrote:Nope even deleting and reistalling Factorio solves that issue, quiet anoying
So you are saying that when you change it and start new game, the old value is there, then you reinstall factorio, put the same mod there again, and it works correctly?
Re: Change Item Crafting Speed?
And now it works just fine with
thanks a lot, didn't even thought about reset thingy
Code: Select all
game.reloadscript()
game.player.force.resettechnologies()
game.player.force.resetrecipes()
Re: Change Item Crafting Speed?
Well not sure if reinstalling factorio really solves it, what I did was installing it in a different computer (maybe what is causing that is saved somewhere)
I didnt report it because I had the issue and I bought a new pc, and I didnt have the issue so I forgot.
I didnt report it because I had the issue and I bought a new pc, and I didnt have the issue so I forgot.