Prototype/Inserter: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page.)
 
(0.16)
Line 2: Line 2:
An [[inserter]]. Based on [[Prototype/EntityWithHealth]].
An [[inserter]]. Based on [[Prototype/EntityWithHealth]].


== Properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].


=== insert_distance ===
=== extension_speed ===
Type: [[Types/double]]
'''Type''': [[Types/double]]
 
=== rotation_speed ===
'''Type''': [[Types/double]]
 
=== energy_per_movement ===
'''Type''': [[Types/double]]
 
=== energy_per_rotation ===
'''Type''': [[Types/double]]
 
=== insert_position ===
'''Type''': [[Types/vector]]


The distance at which this inserter inserts. This is 0.85 for most inserters, and 1.85 for long-handed inserters.
=== pickup_position ===
'''Type''': [[Types/vector]]
 
=== platform_picture ===
'''Type''': [[Types/Sprite4Way]]


=== pickup_distance ===
=== hand_base_picture ===
Type: [[Types/double]]
'''Type''': [[Types/Sprite]]


The distance at which this inserter picks up items. This is 1 for most inserters, and 2 for long-handed inserters.
=== hand_open_picture ===
'''Type''': [[Types/Sprite]]


=== energy_per_movement ===
=== hand_closed_picture ===
Type: [[Types/double]]
'''Type''': [[Types/Sprite]]


Unknown units. This is 5 for most inserters, 100 for burner inserters and 7 for smart inserters.
=== hand_base_shadow ===
'''Type''': [[Types/Sprite]]


=== energy_per_rotation ===
=== hand_open_shadow ===
Type: [[Types/double]]
'''Type''': [[Types/Sprite]]


Unknown units. This is 5 for most inserters, 100 for burner inserters and 7 for smart inserters.
=== hand_closed_shadow ===
'''Type''': [[Types/Sprite]]


=== energy_source ===
=== energy_source ===
Type: [[Types/EnergySource]]
'''Type''': [[Types/EnergySource]]


Defines how this inserter gets energy.
Defines how this inserter gets energy.


=== extension_speed ===
== Optional properties ==
Type: [[Types/double]]
=== stack ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
=== allow_custom_vectors ===
'''Type''': [[Types/bool]]
 
'''Default''': false
 
Whether pickup and insert position can be set run-time.
 
=== draw_held_item ===
'''Type''': [[Types/bool]]


Unknown units. This is 0.028 for normal inserters, 0.02 for burner inserters, 0.04 for long-handed inserters, 0.07 for fast inserters and smart inserters.
'''Default''': true


=== filter_count ===
=== filter_count ===
Type: [[Types/unsigned]]
'''Type''': [[Types/uint8]]


The number of filter slots this inserter has.
'''Default''': 0


=== hand_base_picture ===
Maximum count of filtered items in inserter is 5.
Type: [[Types/Sprite]]


=== hand_open_picture ===
=== hand_size ===
Type: [[Types/Sprite]]
'''Type''': [[Types/double]]


=== hand_closed_picture ===
'''Default''': 0.75
Type: [[Types/Sprite]]


=== platform_picture ===
=== circuit_wire_max_distance ===
Type: [[Types/Sprite]]
'''Type''': [[Types/double]]


=== programmable ===
'''Default''': 0
Type: [[Types/bool]]


Optional. Whether this inserter can be connected to the [[circuit network]]. Defaults to false.
=== default_stack_control_input_signal ===
'''Type''': [[Types/SignalIDConnector]]


=== uses_arm_movement ===
=== circuit_wire_connection_points ===
Type: [[Types/string]]
'''Type''': [[Types/table]] of [[Types/WireConnectionPoint]]


Unknown if this is actually used. Set to "basic-inserter" for smart inserters, and not set for any other inserters.
=== circuit_connector_sprites ===
'''Type''': [[Types/table]] of [[Types/CircuitConnectorSprites]]

Revision as of 14:24, 20 May 2018

Basics

An inserter. Based on Prototype/EntityWithHealth.

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

extension_speed

Type: Types/double

rotation_speed

Type: Types/double

energy_per_movement

Type: Types/double

energy_per_rotation

Type: Types/double

insert_position

Type: Types/vector

pickup_position

Type: Types/vector

platform_picture

Type: Types/Sprite4Way

hand_base_picture

Type: Types/Sprite

hand_open_picture

Type: Types/Sprite

hand_closed_picture

Type: Types/Sprite

hand_base_shadow

Type: Types/Sprite

hand_open_shadow

Type: Types/Sprite

hand_closed_shadow

Type: Types/Sprite

energy_source

Type: Types/EnergySource

Defines how this inserter gets energy.

Optional properties

stack

Type: Types/bool

Default: false

allow_custom_vectors

Type: Types/bool

Default: false

Whether pickup and insert position can be set run-time.

draw_held_item

Type: Types/bool

Default: true

filter_count

Type: Types/uint8

Default: 0

Maximum count of filtered items in inserter is 5.

hand_size

Type: Types/double

Default: 0.75

circuit_wire_max_distance

Type: Types/double

Default: 0

default_stack_control_input_signal

Type: Types/SignalIDConnector

circuit_wire_connection_points

Type: Types/table of Types/WireConnectionPoint

circuit_connector_sprites

Type: Types/table of Types/CircuitConnectorSprites