Robot Lumberjack

The Robot Lumberjack is a Robot added by the mod BuildCraft. It is able to use Axes and cut trees down. Subsequently, the wood can be collected by the Robot Picker and stored in a chest for use by the player.

Usage


The robot automatically cuts trees down, but is unable to collect the dropped wood; thus, having a Robot Picker is very useful to gather wood.

The setup described below will set up a Robot Lumberjack, using the forest in Fig. 1 as a test area.

Needed Items:

 * 4 s
 * 1
 * 1
 * 1
 * 1 (or a other type of Emerald Gate if special functions needed)
 * 1
 * 1
 * 1 or more Axes of any type
 * 1
 * some and s (amount depends on the tree height)

Step 1: Demarcating a work zone
The player must demarcate the working zone of the robot&mdash;this is achieved with Land Marks. If the player doesn't define and configure a working area for the robot in Step 3, the robot will fly to every active chunk and clear every tree/forest as well as wood incorporated in buildings.

The player must first place three Land Marks in a 90° angle which defines the base of the work zone. Right-click on one of the marks to display red borders (shown in Fig. 2) which show the ground area of the work zone.

The two marks on the left and right in the figure may not be more than 64 blocks away from the center mark.

To designate the work zone's height, the fourth Land Mark must be placed at the maximum height the Robot should operate in. Creating a dirt mound as in the example is a cheap and highly reversible method to do so.

Right-clicking on any Land Mark will show red border which frame a 3-dimensional work zone (shown in Fig. 3). If no red border appears, then the Land Marks are not in a 90° angle to each other.

To fell the trees, the Robot Lumberjack needs a 3-dimensional zone which includes all wood in trees. If the player uses the 2-dimensional zone, defined by the three ground Land Marks, the Robot will only mine the wood on the ground. Wood blocks outside the working area are not touched.

Step 2: Control Station
The player must build a control station for the robot. It can be placed anywhere but it is recommend to place it near the work zone for easier access. The following described control station is the simplest and can be extended.

The station includes a Chest with a connected Wooden Transport Pipe, a Docking Station and an Emerald AND Gate which can be placed anywhere on the Pipe (without disconnecting the Chest).

Place the Lever in front of the Emerald Gate and Axes in the Chest. The station should look like the example in Fig. 4.

Step 3: Configuration
The third step is to configure the Emerald Gate to control the robot. This is one of many examples that will work.

Right-click on the Gate to open its GUI, which shows two 4x4 slotted fields (one left, one right).

Replicate the slots as shown in Fig. 5. In the first and third row on the right side are signalling that items should be placed in those slots.

The important configurations to control the robot shown in Fig. 5 are explained in the following:

A full explanation of all possible functions can be found in the the Emerald Gate article.

The sequence of rows does not matter.

Slots requiring coordinates can be added by the Map Location.
 * 1) Take the Map Location and right-click on one of the Land Marks to receive the coordinates of the work zone (shown in Fig. 6). The Map Location will now have a rectangle on it. Place the Map Location in the  slot in the first row ("Working area" option) of the Emerald Gate's GUI. The coordinates will be stored and the Map Location can be reused for the second coordinates.
 * 2) Take the Map Location and right-click on the Docking Station to receive its coordinates. Note: It is important which side is indicated at the coordinates for the docking station. This is displayed in the player inventory if the cursor is hovered over the Map Location. Check that the specified side is the same as the docking station ; for example UP if the docking station is on top of the pipe. Put the Map Location in the  slot in the third row ("Go to station" option) of the Emerald Gate's GUI.
 * 3) Put any Axe in one of the empty slots in the second row on the right side

The interface should appear like Fig. 5 and the control station will be fully configured. The Land Marks and the respective frame are no longer needed for this example and can be removed. If the player wants to use the frame for other robots (such as the Robot Picker, make sure to have the coordinates stored in a Map Location.

Step 4: Starting and stopping
Place the Robot Lumberjack on top of the Docking Station (shown in Fig. 7). The Robot will initially do nothing because the logic statement in the third row instructs the Robot to stay on the Station when there is no redstone signal.

If the Lever in front of the gate is switched on and a redstone signal is provided to the Gate, the first and the second row will become true and activate.

After a short time (the update time of the robot), the robot will take an Axe out of the chest (second logic statement in the Emerald Gate) and start working in the work zone (first logic statement in the Emerald Gate) (shown in Fig. 8) until there is no more wood in the work zone.

When the axe breaks, the Robot will return to the station and take a new Axe (if any) from the Chest before resuming work.

When all wood is harvested in the work zone, the robot will return to the Docking Station but will remain active. It will resume working when new wood blocks appear or are placed in the work zone. The work of the robot can be stopped anytime by switching the Lever (in front of the Gate) off, causing it to return to the Docking Station.

Recharging
If the robot is low on energy, it will begin to seek out a kinesis pipe with a docking station to charge itself. If none are available, it will continue doing its job until its battery dies. The player can also stop the robot with attacks to prematurely drain its battery, causing the to robot drop as an item on the ground. Stronger attacks will drain its battery faster. The player can pick up the robot and place it in the Charging Table to recharge it. The robot can then be placed again on the Docking Station to resume work.