Prototype definitions: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Moved AssemblingMachine to PipeConnectable, because Assembling Machines 2 and 3 both have the pipe connectable data in them.)
(Removed old prototype docs)
Tag: Replaced
 
(48 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Warning ==
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/auxiliary/prototype-tree.html https://lua-api.factorio.com/latest/auxiliary/prototype-tree.html].
This is work in progress of description of the prototype specification possibilities.


'''The game is in early stage, and the interface will change in the future for sure.'''
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
== Basics ==
* Prototype objects are specified in lua script called data.lua in the root of every mod (base game works as mod as well)
* Individual objects are usually sorted into different groups in the prototypes folder.
== Prototypes ==
* [[Prototype/AmmoCategory]] '''ammo-category'''
* [[Prototype/AutoplaceControl]] '''autoplace-control'''
* [[Prototype/DamageType]] '''damage-type'''
* [[Prototype/Entity]] <abstract>
** [[Prototype/Arrow]] '''arrow'''
** [[Prototype/Corpse]] '''corpse'''
** [[Prototype/Decorative]] '''decorative'''
** [[Prototype/Explosion]] '''explosion'''
*** [[Prototype/FlameThrowerExplosion]] '''flame-thrower-explosion'''
** [[Prototype/EntityWithHealth]] <abstract>
*** [[Prototype/Accumulator]] '''accumulator'''
*** [[Prototype/Beacon]] '''beacon'''
*** [[Prototype/Car]] '''car'''
*** [[Prototype/Character]] '''player'''
*** [[Prototype/Container]] '''container'''
**** [[Prototype/SmartContainer]] '''smart-container'''
***** [[Prototype/LogisticContainer]] '''logistic-container'''
*** [[Prototype/ElectricPole]] '''electric-pole'''
*** [[Prototype/Fish]] '''fish'''
*** [[Prototype/Furnace]] '''furnace'''
*** [[Prototype/Inserter]] '''inserter'''
*** [[Prototype/Lab]] '''lab'''
*** [[Prototype/Lamp]] '''lamp'''
*** [[Prototype/Market]] '''market'''
*** [[Prototype/MiningDrill]] '''mining-drill'''
*** [[Prototype/PipeConnectable]] <abstract>
**** [[Prototype/AssemblingMachine]] '''assembling-machine'''
**** [[Prototype/Boiler]] '''boiler'''
**** [[Prototype/Generator]] '''generator'''
**** [[Prototype/Pump]] '''pump'''
**** [[Prototype/Pipe]] '''pipe'''
**** [[Prototype/PipeToGround]] '''pipe-to-ground'''
*** [[Prototype/PlayerPort]] '''player-port'''
*** [[Prototype/Radar]] '''radar'''
*** [[Prototype/Rail]] '''rail'''
*** [[Prototype/RailSignal]] '''rail-signal'''
*** [[Prototype/Roboport]] '''roboport'''
*** [[Prototype/Robot]] <abstract>
**** [[Prototype/CombatRobot]] '''combat-robot'''
**** [[Prototype/ConstructionRobot]] '''construction-robot'''
**** [[Prototype/LogisticRobot]] '''logistic-robot'''
*** [[Prototype/RocketDefense]] '''rocket-defense'''
*** [[Prototype/SolarPanel]] '''solar-panel'''
*** [[Prototype/Splitter]] '''splitter'''
*** [[Prototype/TrainStop]] '''train-stop'''
*** [[Prototype/TrainUnit]] <abstract>
**** [[Prototype/CargoWagon]] '''cargo-wagon'''
**** [[Prototype/Locomotive]] '''locomotive'''
*** [[Prototype/TransportBelt]] '''transport-belt'''
*** [[Prototype/TransportBeltToGround]] '''transport-belt-to-ground'''
*** [[Prototype/Tree]] '''tree'''
*** [[Prototype/Turret]] '''turret'''
**** [[Prototype/AmmoTurret]] '''ammo-turret'''
**** [[Prototype/ElectricTurret]] '''electric-turret'''
*** [[Prototype/Unit]] '''unit'''
*** [[Prototype/UnitSpawner]] '''unit-spawner'''
*** [[Prototype/Wall]] '''wall'''
** [[Prototype/FlyingText]] '''flying-text'''
** [[Prototype/Ghost]] '''ghost'''
** [[Prototype/ItemEntity]] '''item-entity'''
** [[Prototype/LandMine]] '''land-mine'''
** [[Prototype/Particle]] '''particle'''
** [[Prototype/Projectile]] '''projectile'''
** [[Prototype/RailRemnants]] '''rail-remnants'''
** [[Prototype/Resource]] '''resource'''
** [[Prototype/Smoke]] '''smoke'''
** [[Prototype/Sticker]] '''sticker'''
* [[Prototype/Item]] '''item'''
** [[Prototype/Ammo]] '''ammo'''
** [[Prototype/Armor]] '''armor'''
** [[Prototype/Capsule]] '''capsule'''
** [[Prototype/Equipment]] <abstract>
*** [[Prototype/NightVisionEquipment]] '''night-vision-equipment'''
*** [[Prototype/EnergyShieldEquipment]] '''energy-shield-equipment'''
*** [[Prototype/BatteryEquipment]] '''battery-equipment'''
*** [[Prototype/SolarPanelEquipment]] '''solar-panel-equipment'''
*** [[Prototype/GeneratorEquipment]] '''generator-equipment'''
*** [[Prototype/ActiveDefenseEquipment]] '''active-defense-equipment'''
*** [[Prototype/MovementBonusEquipment]] '''movement-bonus-equipment'''
** [[Prototype/Gun]] '''gun'''
** [[Prototype/MiningTool]] '''mining-tool'''
** [[Prototype/Module]] '''module'''
* [[Prototype/ItemGroup]] '''item-group'''
* [[Prototype/MapSettings]] '''map-settings'''
* [[Prototype/NoiseLayer]] '''noise-layer'''
* [[Prototype/RailCategory]] '''recipe-category'''
* [[Prototype/Recipe]] '''recipe'''
* [[Prototype/RecipeCategory]] '''recipe-category'''
* [[Prototype/Technology]] '''technology'''
* [[Prototype/Tile]] '''tile'''
 
{{Template:LuaObjects}}

Latest revision as of 14:40, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/auxiliary/prototype-tree.html.

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.