Factorio Prototype DocsVersion 1.1.107

Energy :: stringExample code

Specifies an amount of electric energy in joules, or electric energy per time in watts.

Internally, the input in Watt or Joule/second is always converted into Joule/tick, where 1 second is equal to 60 ticks. This means it uses the following formula: Power in Joule/tick = Power in Watt / 60. See Power.

Supported Multipliers:

  • k/K: 10^3, or 1 000

  • M: 10^6

  • G: 10^9

  • T: 10^12

  • P: 10^15

  • E: 10^18

  • Z: 10^21

  • Y: 10^24

Example

buffer_capacity = "5MJ"
input_flow_limit = "300W"
-- the following two lines result in the same power consumption:
energy_usage = "60W"
energy_usage = "1J" -- not recommended, Watt is convention for power

Type used in

Prototypes

Types