Prototype/AssemblingMachine: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page.)
 
(Removed old prototype docs)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Basics ==
<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/prototypes/AssemblingMachinePrototype.html https://lua-api.factorio.com/latest/prototypes/AssemblingMachinePrototype.html]
An assembling machine - like the assembling machines 1/2/3 in the game, but you can use your own recipe categories. Based on [[Prototype/EntityWithHealth]].


== Properties ==
</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>
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
 
=== animation ===
Type: [[Types/Animation]]
 
The animation played when crafting. When the assembling machine is idle, the animation will be paused.
 
=== crafting_categories ===
Type: [[Types/table]]
 
A list of [[Prototype/RecipeCategory|recipe categories]] this assembling machine can use.
 
Example:
<pre>
crafting_categories = {"crafting", "smelting"}
</pre>
 
=== crafting_speed ===
Type: [[Types/double]]
 
How fast this assembling machine can craft, compared to the player.
 
If this is 0.75, for example, the assembling machine will craft at 75% of the speed of the player.
 
=== energy_source ===
Type: [[Types/EnergySource]]
 
Defines how the assembling machine is powered.
 
=== energy_usage ===
Type: [[Types/EnergyPower]]
 
Sets how much energy this machine uses while crafting.
 
=== ingredient_count ===
Type: [[Types/unsigned]]
 
Sets the maximum number of ingredients this machine can craft with.
 
Any recipe with more ingredients than this will be unavailable in this machine.
 
=== module_slots ===
Type: [[Types/unsigned]]
 
The number of module slots in this machine.
 
=== allowed_effects ===
Type: [[Types/AllowedEffects]]
 
Sets the module effects that are allowed to be used on this machine.

Latest revision as of 14:32, 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/prototypes/AssemblingMachinePrototype.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.