Types/Energy: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Bilka moved page Types/EnergyUsage to Types/Energy: in-code name)
(energy got merged years ago)
Line 1: Line 1:
{{stub}}
Uses [[Types/string]] to specify the amount of electric energy in joules or electric energy per time in watts.
Uses [[Types/string]] to specify the amount of electric energy in Joules.
<syntaxhighlight lang="lua">buffer_capacity = "5MJ"
    energy_usage = "200J"
input_flow_limit = "300W"</syntaxhighlight>
    energy_usage = "5kJ"
Supported multipliers:
Supported multipliers:
{|
{| class="wikitable"
|-
|-
! letter !! name
! Letter !! Multiplier
|-
|-
| k/K || kilo
| k/K || 10<sup>3</sup> (1000)
|-
|-
| M || mega
| M || 10<sup>6</sup> (1,000,000)
|-
|-
| G || giga
| G || 10<sup>9</sup> (1,000,000,000)
 
|-
| T || 10<sup>12</sup>
|-
| P || 10<sup>15</sup>
|-
| E || 10<sup>18</sup>
|-
| Z || 10<sup>21</sup>
|-
| Y || 10<sup>24</sup>
|}
|}
1 watt = 1 joule/s
1 joule = 60 watt (1 watt = 1 joule/60 ticks)

Revision as of 20:18, 1 January 2018

Uses Types/string to specify the amount of electric energy in joules or electric energy per time in watts.

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

1 joule = 60 watt (1 watt = 1 joule/60 ticks)