Sorter

Moves a type of resource through it, depending on the input and output faces as indicated by the arrow. Behaves just like the old Diode part when set to insert 100 Power. It is a craftable and spawnable non-flammable solid.
It cannot be resized.
At its default size (1x1x2) it has a durability of 1.
By default, its colour is #000000.
It requires 1 Copper
and 1 Polysilicon
to be crafted.
Methods
Sort(amount)
Tells the sorter to move the given amount of resources, or the sort quantity config if unspecified.
The amount parameter is the amount of resources to move. It is a number
. It can also be nil
.
Configurables
Rate
How much of the resource to push per second. May be inf (or math.huge in a Microcontroller). It is a number
.
It has a minimum value of 0, and an increment of 1.
Resource
The kind of resource to push. May be a special or generic type like Gas, Solid, etc. It is a string
.
TriggerQuantity
How much of the resource to push when triggered. May be inf (or math.huge in a Microcontroller). It is a number
.
It has a minimum value of 0, and an increment of 1.
Events
Loop(tickInterval)
Fires when the object is updated by the game loop.
The tickInterval parameter is the inverse of the tick rate. For example, if the tick rate is 20
, this will be 1 / 20
(or just 0.05
). If the tick rate commands are accessible, running them will change this value. It is a number
.