This wiki is about 0.17, the current experimental version of Factorio.

Information about 0.16, the current stable version of Factorio, can be found on stable.wiki.factorio.com.

Types/ModuleSpecification

From Official Factorio Wiki
Jump to: navigation, search

Basics

The number of module slots in this entity, and their icon positions.

Optional properties

module_slots

Type: Types/ItemStackIndex

Default: 0

The number of module slots in this entity.

module_info_max_icons_per_row

Type: Types/uint8

Default: width of entity selection box / 0.75

module_info_max_icon_rows

Type: Types/uint8

Default: width of entity selection box / 1.5

module_info_icon_shift

Type: Types/vector

Default: {0, 0.7}

module_info_icon_scale

Type: Types/float

Default: 0.5

module_info_separation_multiplier

Type: Types/float

Default: 1.1

module_info_multi_row_initial_height_modifier

Type: Types/float

Default: -0.1

Example

module_specification =
{
  module_slots = 2,
  module_info_icon_shift = {0, 0.5},
  module_info_multi_row_initial_height_modifier = -0.3
}