Types/Energy

From Official Factorio Wiki
Jump to navigation Jump to search

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/Energy.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Uses Types/string to specify the 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 or Joule/(1/60)second, using the following formula: Power in Joule/tick = Power in Watt / 60 (Units#Power).

Examples

buffer_capacity = "5MJ"
input_flow_limit = "300W"

Supported multipliers

Letter Multiplier
k/K 103 (1000)
M 106 (1,000,000)
G 109 (1,000,000,000)
T 1012
P 1015
E 1018
Z 1021
Y 1024