Machine

The processor for machine recipes.

The machine processor is used by default to process Machine recipes.

If the "processor" property is not specified in the machine json, this processor will be used by default.

Properties

There are 2 optional properties for this processor :

Optional properties

Amount

Name : amount

Description :

A positive integer that define the amount of cores the processor can use.

Each core will be able to process a recipe in parallel, so the amount of cores define the amount of recipes that can be processed at a time by the machine.

Default : 1

Example :

The machine will be able to process 2 machines at the same time :

"amount": 2
Cooldown

Name : cooldown

Description :

The time in ticks between two recipe checks for a machine. When a machine using this processor fail to find a recipe to process (in idle mode) the machine will wait for a bit of time before checking the recipes again.

Decreasing this cooldown will make the machine start the process faster, but can also increase the lag generated by idle machines. Use with caution.

Default : 20 ticks (1 second)

Example :

The machine will now check recipes every ticks instead of every second :

"cooldown": 1

Example

Make the machine use the machine processor with 4 cores :

{
    "name": "Name of the machine",
    "appearance": {},
    "processor": {
        "type": "custommachinery:machine",
        "amount": 4
    }
}

Last updated