The Mill

Overview
The Mill is the sawmill in Lumber INC 3. It features a conveyor system consisting of three processes: cutting, recycling, and packaging.

It is also surrounded by a large open space where haulers can dump logs for lifters to pick up. This is done to prevent clogging.

Cutting
Before cutting, logs are placed on the outside conveyor. A ramped "smart" conveyor is also present, which automatically stops whenever there is a log being sawed for the saw's respective conveyor. It updates every 5 seconds.

The first in the procedure of The Mill's conveyor system is cutting. It has two saws along with two different entry points of logs. Saws cut the logs into planks with lengths of 12. All length-12 planks are sent directly for packaging and any remainders from this process proceed to the Recycling section. Found below is the formula for the number of planks produced by a log, given its height and corresponding size variable:

$$\frac{\alpha \cdot h}{12}$$

where α is the size variable and h is the height of the log. Using the following table to fetch the value of α:

In order to get the number of packages, simply divide the above expression by 30.

Recycling
Logs which are too short (length less than 12) are sent for recycling instead. In this process, shorter logs are combined to form a length-12 log that is suitable for packaging. They are automatically detected and sent to a secondary conveyor at the back of the mill for recycling.

Packaging
Planks are packaged into groups of 30 and are now ready to load onto the train. Packages are made at the back of the mill and are transported outside via a long conveyor. The color of the package is randomly chosen from the planks that it contains. The more planks of one color, the higher probability of that color.