I tried a couple of things that didn't have any effect—
e.g.
Code: Select all
-- This doesn't work!
data.raw.recipe["medium-electric-pole"].time = 2;
Code: Select all
-- This doesn't work!
data.raw.recipe["medium-electric-pole"].time = 2;
Yes, that was it — thanks!Nexela wrote:energy :: double [Read-only]
Energy required to execute this recipe. This directly affects the crafting time: Recipe's energy is exactly its crafting time in seconds, when crafted in an assembling machine with crafting speed exactly equal to one.
I think it is energy_required in the protoype
Every recipe has energy_required, see here:sarcolopter wrote: ↑Wed Mar 30, 2022 7:11 pm How would you do this for a recipe that has no "energy required" field?
Code: Select all
energy_required
Type: double
Default: 0.5
Optional. The amount of time it takes to make this recipe.
This is the number of seconds it takes to craft at crafting speed 1.
Check it out yourself: Create that recipe, start the game, and use CTRL+SHIFT+E to open the prototype browser. Look for this recipe and check its properties -- there will be energy_required!For example:
{
type = "recipe",
…
},