Types/EnergySource: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.16)
Line 2: Line 2:
Specifies the way the entity gets its energy.
Specifies the way the entity gets its energy.
=== type ===
=== type ===
Type: [[Types/string]]
'''Type''': [[Types/string]]


Only valid values are "electric" or "burner", it specifies the type of the energy source to be used.
Only valid values are "electric", "burner" or "heat", it specifies the type of the energy source to be used.
=== emissions ===
=== emissions ===
Type: [[Types/double]]
'''Type''': [[Types/double]]
 
'''Default''': 0


The pollution an entity emits is ''emissions'' times the energy consumption in kW. (This gives you the number that is shown in the entiy tooltip.)
The pollution an entity emits is ''emissions'' times the energy consumption in kW. (This gives you the number that is shown in the entiy tooltip.)


=== resting_consumption_ratio ===
=== effectivity ===
Type: [[Types/float]]
'''Type''': [[Types/double]]
 
'''Default''': 1
 
1 means 100% effectivity. Can't be 0.
=== render_no_power_icon ===
'''Type''': [[Types/bool]]
 
'''Default''': true
 
Whether to render the [[File:Electricity-icon-red.png|50px]] icon on the entity if it is low on power.
 
=== render_no_network_icon ===
'''Type''': [[Types/bool]]
 
'''Default''': true
 
Whether to render the [[File:Electricity-icon-unplugged.png|50px]] icon on the entity if it is not connected to a electric network.


Default: 1/30
== Electric energy source ==
== Electric energy source ==
=== buffer_capacity ===
=== buffer_capacity ===
Type: [[Types/EnergyAmount]]
'''Type''': [[Types/Energy]]


How much power the entity holds.
How much power the entity holds.
=== usage_priority ===
=== usage_priority ===
Type: [[Types/EnergyPriority]]
'''Type''': [[Types/ElectricUsagePriority]]
=== input_flow_limit ===
=== input_flow_limit ===
Type: [[Types/EnergyPower]]
'''Type''': [[Types/Energy]]
 
'''Default''': 0


How fast the energy can flow into the entity.
How fast the energy can flow into the entity. 0 means no limit.
=== output_flow_limit ===
=== output_flow_limit ===
Type: [[Types/EnergyPower]]
'''Type''': [[Types/Energy]]


How fast the energy can flow out of the entity.
'''Default''': 0


=== render_no_power_icon ===
How fast the energy can flow out of the entity. 0 means no limit.
Type: [[Types/bool]]


Whether to render the [[File:Electricity-icon-red.png|50px]] icon on the entity if it is low on power. Optional, default is true.
=== drain ===
'''Type''': [[Types/Energy]]


=== render_no_network_icon ===
== Burner ==
Type: [[Types/bool]]
=== fuel_inventory_size ===
'''Type''': [[Types/ItemStackIndex]]


Whether to render the [[File:Electricity-icon-unplugged.png|50px]] icon on the entity if it is not connected to a electric network. Optional, default is true.
=== burnt_inventory_size ===
'''Type''': [[Types/ItemStackIndex]]


== Burner ==
'''Default''': 0
=== effectivity ===
Type: [[Types/float]]


Value specifying the amount of burning value of the item to be transferred into the energy.
1 means 100% effectivity. Can't be 0.
=== fuel_inventory_size ===
Type: [[Types/InventorySize]]
=== smoke ===
=== smoke ===
Type: [[Types/SmokeSources]]
'''Type''': [[Types/SmokeSources]]
 
=== light_flicker ===
'''Type''': [[Types/LightFlickeringDefinition]]


=== fuel_category ===
=== fuel_category ===
Type: [[Types/string]]
'''Type''': [[Types/string]]
 
'''Default''': "chemical"


The energy source can be used with fuel from this [[Prototype/FuelCategory|fuel category]].
The energy source can be used with fuel from this [[Prototype/FuelCategory|fuel category]].
=== fuel_categories ===
'''Type''': [[Types/table]] of [[Types/string]]
Same as above, only one of them can exist.
== Heat energy source ==
=== max_temperature ===
'''Type''': [[Types/double]]
=== specific_heat ===
'''Type''': [[Types/Energy]]
=== max_transfer ===
'''Type''': [[Types/Energy]]
=== min_temperature_gradient ===
'''Type''': [[Types/double]]
'''Default''': 1
=== connections ===
'''Type''': [[Types/table]] of [[Types/HeatConnection]]
=== pipe_covers ===
'''Type''': [[Types/Sprite4Way]]

Revision as of 12:53, 26 January 2018

Basics

Specifies the way the entity gets its energy.

type

Type: Types/string

Only valid values are "electric", "burner" or "heat", it specifies the type of the energy source to be used.

emissions

Type: Types/double

Default: 0

The pollution an entity emits is emissions times the energy consumption in kW. (This gives you the number that is shown in the entiy tooltip.)

effectivity

Type: Types/double

Default: 1

1 means 100% effectivity. Can't be 0.

render_no_power_icon

Type: Types/bool

Default: true

Whether to render the Electricity-icon-red.png icon on the entity if it is low on power.

render_no_network_icon

Type: Types/bool

Default: true

Whether to render the Electricity-icon-unplugged.png icon on the entity if it is not connected to a electric network.

Electric energy source

buffer_capacity

Type: Types/Energy

How much power the entity holds.

usage_priority

Type: Types/ElectricUsagePriority

input_flow_limit

Type: Types/Energy

Default: 0

How fast the energy can flow into the entity. 0 means no limit.

output_flow_limit

Type: Types/Energy

Default: 0

How fast the energy can flow out of the entity. 0 means no limit.

drain

Type: Types/Energy

Burner

fuel_inventory_size

Type: Types/ItemStackIndex

burnt_inventory_size

Type: Types/ItemStackIndex

Default: 0

smoke

Type: Types/SmokeSources

light_flicker

Type: Types/LightFlickeringDefinition

fuel_category

Type: Types/string

Default: "chemical"

The energy source can be used with fuel from this fuel category.

fuel_categories

Type: Types/table of Types/string

Same as above, only one of them can exist.

Heat energy source

max_temperature

Type: Types/double

specific_heat

Type: Types/Energy

max_transfer

Type: Types/Energy

min_temperature_gradient

Type: Types/double

Default: 1

connections

Type: Types/table of Types/HeatConnection

pipe_covers

Type: Types/Sprite4Way