Prototype definitions: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(1.0.0)
m (no)
 
(5 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 18: Line 19:
* [[Prototype/Sprite]] '''sprite'''
* [[Prototype/Sprite]] '''sprite'''
* [[Prototype/TileEffect]] '''tile-effect'''
* [[Prototype/TileEffect]] '''tile-effect'''
* [[Prototype/TipsAndTricksItemCategory]] '''tips-and-tricks-item-category'''
* [[Prototype/TriggerTargetType]] '''trigger-target-type'''
* [[Prototype/TriggerTargetType]] '''trigger-target-type'''
* [[Prototype/WindSound]] '''wind-sound'''
* [[Prototype/WindSound]] '''wind-sound'''
Line 58: Line 60:
*** [[Prototype/LeafParticle]] '''leaf-particle''' (for migration, cannot be used)
*** [[Prototype/LeafParticle]] '''leaf-particle''' (for migration, cannot be used)
** [[Prototype/EntityWithHealth]] <abstract>
** [[Prototype/EntityWithHealth]] <abstract>
*** [[Prototype/Accumulator]] '''accumulator'''
*** [[Prototype/EntityWithOwner]] <abstract>
*** [[Prototype/ArtilleryTurret]] '''artillery-turret'''
**** [[Prototype/Accumulator]] '''accumulator'''
*** [[Prototype/Beacon]] '''beacon'''
**** [[Prototype/ArtilleryTurret]] '''artillery-turret'''
*** [[Prototype/Boiler]] '''boiler'''
**** [[Prototype/Beacon]] '''beacon'''
*** [[Prototype/BurnerGenerator]] '''burner-generator'''
**** [[Prototype/Boiler]] '''boiler'''
*** [[Prototype/Character]] '''character'''
**** [[Prototype/BurnerGenerator]] '''burner-generator'''
*** [[Prototype/Combinator]] <abstract>
**** [[Prototype/Character]] '''character'''
**** [[Prototype/ArithmeticCombinator]] '''arithmetic-combinator'''
**** [[Prototype/Combinator]] <abstract>
**** [[Prototype/DeciderCombinator]] '''decider-combinator'''
***** [[Prototype/ArithmeticCombinator]] '''arithmetic-combinator'''
*** [[Prototype/ConstantCombinator]] '''constant-combinator'''
***** [[Prototype/DeciderCombinator]] '''decider-combinator'''
*** [[Prototype/Container]] '''container'''
**** [[Prototype/ConstantCombinator]] '''constant-combinator'''
**** [[Prototype/LogisticContainer]] '''logistic-container'''
**** [[Prototype/Container]] '''container'''
***** [[Prototype/InfinityContainer]] '''infinity-container'''
***** [[Prototype/LogisticContainer]] '''logistic-container'''
*** [[Prototype/CraftingMachine]] <abstract>
****** [[Prototype/InfinityContainer]] '''infinity-container'''
**** [[Prototype/AssemblingMachine]] '''assembling-machine'''
**** [[Prototype/CraftingMachine]] <abstract>
***** [[Prototype/RocketSilo]] '''rocket-silo'''
***** [[Prototype/AssemblingMachine]] '''assembling-machine'''
**** [[Prototype/Furnace]] '''furnace'''
****** [[Prototype/RocketSilo]] '''rocket-silo'''
*** [[Prototype/ElectricEnergyInterface]] '''electric-energy-interface'''
***** [[Prototype/Furnace]] '''furnace'''
*** [[Prototype/ElectricPole]] '''electric-pole'''
**** [[Prototype/ElectricEnergyInterface]] '''electric-energy-interface'''
*** [[Prototype/EnemySpawner]] '''unit-spawner'''
**** [[Prototype/ElectricPole]] '''electric-pole'''
**** [[Prototype/EnemySpawner]] '''unit-spawner'''
**** [[Prototype/FlyingRobot]] <abstract>
***** [[Prototype/CombatRobot]] '''combat-robot'''
***** [[Prototype/RobotWithLogisticInterface]] <abstract>
****** [[Prototype/ConstructionRobot]] '''construction-robot'''
****** [[Prototype/LogisticRobot]] '''logistic-robot'''
**** [[Prototype/Gate]] '''gate'''
**** [[Prototype/Generator]] '''generator'''
**** [[Prototype/HeatInterface]] '''heat-interface'''
**** [[Prototype/HeatPipe]] '''heat-pipe'''
**** [[Prototype/Inserter]] '''inserter'''
**** [[Prototype/Lab]] '''lab'''
**** [[Prototype/Lamp]] '''lamp'''
**** [[Prototype/LandMine]] '''land-mine'''
**** [[Prototype/LinkedContainer]] '''linked-container'''
**** [[Prototype/Market]] '''market'''
**** [[Prototype/MiningDrill]] '''mining-drill'''
**** [[Prototype/OffshorePump]] '''offshore-pump'''
**** [[Prototype/Pipe]] '''pipe'''
***** [[Prototype/InfinityPipe]] '''infinity-pipe'''
**** [[Prototype/PipeToGround]] '''pipe-to-ground'''
**** [[Prototype/PlayerPort]] '''player-port'''
**** [[Prototype/PowerSwitch]] '''power-switch'''
**** [[Prototype/ProgrammableSpeaker]] '''programmable-speaker'''
**** [[Prototype/Pump]] '''pump'''
**** [[Prototype/Radar]] '''radar'''
**** [[Prototype/Rail]] <abstract>
***** [[Prototype/CurvedRail]] '''curved-rail'''
***** [[Prototype/StraightRail]] '''straight-rail'''
**** [[Prototype/RailSignalBase]] <abstract>
***** [[Prototype/RailChainSignal]] '''rail-chain-signal'''
***** [[Prototype/RailSignal]] '''rail-signal'''
**** [[Prototype/Reactor]] '''reactor'''
**** [[Prototype/Roboport]] '''roboport'''
**** [[Prototype/SimpleEntityWithOwner]] '''simple-entity-with-owner'''
***** [[Prototype/SimpleEntityWithForce]] '''simple-entity-with-force'''
**** [[Prototype/SolarPanel]] '''solar-panel'''
**** [[Prototype/StorageTank]] '''storage-tank'''
**** [[Prototype/TrainStop]] '''train-stop'''
**** [[Prototype/TransportBeltConnectable]] <abstract>
***** [[Prototype/LinkedBelt]] '''linked-belt'''
***** [[Prototype/Loader1x1]] '''loader-1x1'''
***** [[Prototype/Loader1x2]] '''loader'''
***** [[Prototype/Splitter]] '''splitter'''
***** [[Prototype/TransportBelt]] '''transport-belt'''
***** [[Prototype/UndergroundBelt]] '''underground-belt'''
**** [[Prototype/Turret]] '''turret'''
***** [[Prototype/AmmoTurret]] '''ammo-turret'''
***** [[Prototype/ElectricTurret]] '''electric-turret'''
***** [[Prototype/FluidTurret]] '''fluid-turret'''
**** [[Prototype/Unit]] '''unit'''
**** [[Prototype/Vehicle]] <abstract>
***** [[Prototype/Car]] '''car'''
***** [[Prototype/RollingStock]] <abstract>
****** [[Prototype/ArtilleryWagon]] '''artillery-wagon'''
****** [[Prototype/CargoWagon]] '''cargo-wagon'''
****** [[Prototype/FluidWagon]] '''fluid-wagon'''
****** [[Prototype/Locomotive]] '''locomotive'''
***** [[Prototype/SpiderVehicle]] '''spider-vehicle'''
**** [[Prototype/Wall]] '''wall'''
*** [[Prototype/Fish]] '''fish'''
*** [[Prototype/Fish]] '''fish'''
*** [[Prototype/FlyingRobot]] <abstract>
**** [[Prototype/CombatRobot]] '''combat-robot'''
**** [[Prototype/RobotWithLogisticInterface]] <abstract>
***** [[Prototype/ConstructionRobot]] '''construction-robot'''
***** [[Prototype/LogisticRobot]] '''logistic-robot'''
*** [[Prototype/Gate]] '''gate'''
*** [[Prototype/Generator]] '''generator'''
*** [[Prototype/HeatInterface]] '''heat-interface'''
*** [[Prototype/HeatPipe]] '''heat-pipe'''
*** [[Prototype/Inserter]] '''inserter'''
*** [[Prototype/Lab]] '''lab'''
*** [[Prototype/Lamp]] '''lamp'''
*** [[Prototype/LandMine]] '''land-mine'''
*** [[Prototype/Market]] '''market'''
*** [[Prototype/MiningDrill]] '''mining-drill'''
*** [[Prototype/OffshorePump]] '''offshore-pump'''
*** [[Prototype/Pipe]] '''pipe'''
**** [[Prototype/InfinityPipe]] '''infinity-pipe'''
*** [[Prototype/PipeToGround]] '''pipe-to-ground'''
*** [[Prototype/PlayerPort]] '''player-port'''
*** [[Prototype/PowerSwitch]] '''power-switch'''
*** [[Prototype/ProgrammableSpeaker]] '''programmable-speaker'''
*** [[Prototype/Pump]] '''pump'''
*** [[Prototype/Radar]] '''radar'''
*** [[Prototype/Rail]] <abstract>
**** [[Prototype/CurvedRail]] '''curved-rail'''
**** [[Prototype/StraightRail]] '''straight-rail'''
*** [[Prototype/RailSignalBase]] <abstract>
**** [[Prototype/RailChainSignal]] '''rail-chain-signal'''
**** [[Prototype/RailSignal]] '''rail-signal'''
*** [[Prototype/Reactor]] '''reactor'''
*** [[Prototype/Roboport]] '''roboport'''
*** [[Prototype/SimpleEntity]] '''simple-entity'''
*** [[Prototype/SimpleEntity]] '''simple-entity'''
*** [[Prototype/SimpleEntityWithOwner]] '''simple-entity-with-owner'''
*** [[Prototype/SimpleEntityWithForce]] '''simple-entity-with-force'''
*** [[Prototype/SolarPanel]] '''solar-panel'''
*** [[Prototype/SpiderLeg]] '''spider-leg'''
*** [[Prototype/SpiderLeg]] '''spider-leg'''
*** [[Prototype/StorageTank]] '''storage-tank'''
*** [[Prototype/TrainStop]] '''train-stop'''
*** [[Prototype/TransportBeltConnectable]] <abstract>
**** [[Prototype/Loader1x1]] '''loader-1x1'''
**** [[Prototype/Loader1x2]] '''loader'''
**** [[Prototype/Splitter]] '''splitter'''
**** [[Prototype/TransportBelt]] '''transport-belt'''
**** [[Prototype/UndergroundBelt]] '''underground-belt'''
*** [[Prototype/Tree]] '''tree'''
*** [[Prototype/Tree]] '''tree'''
*** [[Prototype/Turret]] '''turret'''
**** [[Prototype/AmmoTurret]] '''ammo-turret'''
**** [[Prototype/ElectricTurret]] '''electric-turret'''
**** [[Prototype/FluidTurret]] '''fluid-turret'''
*** [[Prototype/Unit]] '''unit'''
*** [[Prototype/Vehicle]] <abstract>
**** [[Prototype/Car]] '''car'''
**** [[Prototype/RollingStock]] <abstract>
***** [[Prototype/ArtilleryWagon]] '''artillery-wagon'''
***** [[Prototype/CargoWagon]] '''cargo-wagon'''
***** [[Prototype/FluidWagon]] '''fluid-wagon'''
***** [[Prototype/Locomotive]] '''locomotive'''
**** [[Prototype/SpiderVehicle]] '''spider-vehicle'''
*** [[Prototype/Wall]] '''wall'''
** [[Prototype/Explosion]] '''explosion'''
** [[Prototype/Explosion]] '''explosion'''
*** [[Prototype/FlameThrowerExplosion]] '''flame-thrower-explosion'''
*** [[Prototype/FlameThrowerExplosion]] '''flame-thrower-explosion'''
Line 147: Line 152:
** [[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'''
Line 207: Line 211:
* [[Prototype/Technology]] '''technology'''
* [[Prototype/Technology]] '''technology'''
* [[Prototype/Tile]] '''tile'''
* [[Prototype/Tile]] '''tile'''
* [[Prototype/TipsAndTricksItem]] '''tips-and-tricks-item'''
* [[Prototype/TrivialSmoke]] '''trivial-smoke'''
* [[Prototype/TrivialSmoke]] '''trivial-smoke'''
* [[Prototype/Tutorial]] '''tutorial'''
* [[Prototype/Tutorial]] '''tutorial'''

Latest revision as of 20:59, 21 January 2022

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.