Prototype/AssemblingMachine: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(accidentally edited the wrong page...)
(updated, now no longer shows properties inherited from Prototype/CraftingMachine)
Line 1: Line 1:
== Basics ==
== Basics ==
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]].
An assembling machine - like the assembling machines 1/2/3 in the game, but you can use your own recipe categories. Based on [[Prototype/CraftingMachine]].


== Properties ==
== Properties ==
This prototype inherits all the properties from [[Prototype/EntityWithHealth]].
This prototype inherits all the properties from [[Prototype/CraftingMachine]].
 
=== 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 ===
=== ingredient_count ===
Type: [[Types/unsigned]]
'''Type''': [[Types/uint]]


Sets the maximum number of ingredients this machine can craft with.
Sets the maximum number of ingredients this machine can craft with.


Any recipe with more ingredients than this will be unavailable in this machine.
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.

Revision as of 19:08, 25 October 2017

Basics

An assembling machine - like the assembling machines 1/2/3 in the game, but you can use your own recipe categories. Based on Prototype/CraftingMachine.

Properties

This prototype inherits all the properties from Prototype/CraftingMachine.

ingredient_count

Type: Types/uint

Sets the maximum number of ingredients this machine can craft with.

Any recipe with more ingredients than this will be unavailable in this machine.