Prototype/AssemblingMachine
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.
Properties
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 recipe categories this assembling machine can use.
Example:
crafting_categories = {"crafting", "smelting"}
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.