Prototype/CraftingMachine
Basics
The abstract basis of the assembling machines and furnaces. Contains the properties that both of them have.
Properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
animation
Type: Types/Animation
The animation played when crafting. When the crafting machine is idle, the animation will be paused.
crafting_categories
Type: Types/table of Types/strings
A list of recipe categories this crafting machine can use.
Example:
crafting_categories = {"crafting", "smelting"}
crafting_speed
Type: Types/double
How fast this crafting machine can craft. 1 means that for example a 1 second long recipe take 1 second to craft. 0.5 means it takes 2 seconds, and 2 means it takes 0.5 seconds.
energy_source
Type: Types/EnergySource
Defines how the crafting machine is powered.
energy_usage
Type: Types/EnergyPower
Sets how much energy this machine uses while crafting.
module_specification
Type: Types/ModuleSpecification
The number of module slots in this machine, and their icon positions.
module_specification = {
module_info_icon_shift = {
0,
0.8
},
module_slots = 2
},
allowed_effects
Type: Types/AllowedEffects
Sets the module effects that are allowed to be used on this machine.