Prototype definitions: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.1)
(link settings and runtime docs)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Prototypes are used to specify what items, entities, technologies (etc) exist in the game and what their properties are. Prototypes are created and modified in the [http://lua-api.factorio.com/latest/Data-Lifecycle.html data phase].
Prototypes are used to specify what items, entities, technologies (etc) exist in the game and what their properties are. Prototypes are created and modified in the [http://lua-api.factorio.com/latest/Data-Lifecycle.html data phase].<br>
See [[Tutorial:Mod settings]] for the settings stage documentation and [https://lua-api.factorio.com/latest lua-api.factorio.com] for the runtime API documentation.


: '''See [[prototype overview]] for a full overview of all prototypes and their properties.'''
: '''See [[prototype overview]] for a full overview of all prototypes and their properties.'''
Line 121: Line 122:
*** [[Prototype/TrainStop]] '''train-stop'''
*** [[Prototype/TrainStop]] '''train-stop'''
*** [[Prototype/TransportBeltConnectable]] <abstract>
*** [[Prototype/TransportBeltConnectable]] <abstract>
**** [[Prototype/LinkedBelt]] '''linked-belt'''
**** [[Prototype/Loader1x1]] '''loader-1x1'''
**** [[Prototype/Loader1x1]] '''loader-1x1'''
**** [[Prototype/Loader1x2]] '''loader'''
**** [[Prototype/Loader1x2]] '''loader'''
Line 149: Line 151:
** [[Prototype/ItemEntity]] '''item-entity'''
** [[Prototype/ItemEntity]] '''item-entity'''
** [[Prototype/ItemRequestProxy]] '''item-request-proxy'''
** [[Prototype/ItemRequestProxy]] '''item-request-proxy'''
** [[Prototype/LegacyDecorative]] '''decorative''' (for migration, cannot be used)
** [[Prototype/ParticleSource]] '''particle-source'''
** [[Prototype/ParticleSource]] '''particle-source'''
** [[Prototype/Projectile]] '''projectile'''
** [[Prototype/Projectile]] '''projectile'''

Revision as of 12:20, 1 June 2021

Prototypes are used to specify what items, entities, technologies (etc) exist in the game and what their properties are. Prototypes are created and modified in the data phase.
See Tutorial:Mod settings for the settings stage documentation and lua-api.factorio.com for the runtime API documentation.

See prototype overview for a full overview of all prototypes and their properties.

Prototype hierachy

This is a list of all available prototype types and their inheritance structure.
Each point lists the link to the prototype page which is named after the class in the code, and the string that is used as the type name. Prototypes that have the type name <abstract> cannot be directly created, they simple exist as classes that multiple prototypes can inherit properties from.