Tutorials/Tree Automation

Tree farms can provide many resources including logs, sticks, saplings (which can be composted for bonemeal), apples, moss carpet, and mangrove roots. There are many ways to build an automated tree farm. All of them include a contraption moving a mechanical saw which harvests the whole tree at once and a deployer which plants new seedlings.

This tutorial covers two types of tree farms, a circular farm which uses rotational power and a linear farm which is powered by minecart contraptions.

## Circular Tree Farm

### Items Needed

* Mechanical Saw
* Linear Chassis
* Mechanical Bearing
* Deployer
* Portable Storage Interface
* Chest
* Super Glue
* Smart Chute,  Andesite Funnel, or  Brass Funnel
* Any source of Rotational Power

#### Optional Items

These items may be needed, but are not required for the Machine to work

* Gearshift
* Clutch
* Filter

### Items Produced

These numbers are for 1x1 variants only. Main item is in bold, other are by-products.

### Setup

1. Clear a circular area of desired size where the trees are going to grow. Remember about the sides, as different trees require different space around them.
2. Place a Mechanical Bearing in the middle 1 block above the ground, with the sticky side facing down. This should resemble the radius of the circle.
3. Attach a row of Linear Chassis to the bearing. The stickable side should be facing outwards.
4. Attach 2 Mechanical Saws to the outer end of the Chassis (on the non-stickable side), facing in the direction of rotation of the bearing. Use Super Glue to stick them on.
5. Attach a Deployer to the outer end of the Chassis structure, on the opposite side of the Saws, 1 block from the end of the Chassis, facing towards the end.
6. Put a Filter or a single Sapling in the Deployer's filter slot.
7. Place a Chest anywhere on the Chassis, using Super Glue.
8. Attach a Portable Storage Interface on the end of the Chassis, on the top side, facing outwards. Use Super Glue to stick it on.
9. Choose the location of the storage, and put a second interface there, 1 block apart. The two interfaces will connect when the whole structure will be passing by the stationary interface.
10. Attach a Smart Chute to the stationary Storage Interface. You can also use other means of item transportation, such as a Hopper or Funnel.
11. Provide some saplings to the Chest. The Deployer will take and place them when the machine is started.
12. Provide Rotation Force to the upper side of the Mechanical Bearing. The machine will start rotating.
13. If the structure is rotating in the wrong direction, place a Gearshift above the bearing and power it with a lever.
14. If you want to have a way of stopping the structure, do the following:
	1. Using a Wrench, set the Movement Mode of the bearing to "Only Place when Anchor Destroyed" (the 3rd option).
	2. Place a Clutch above the bearing or the gearshift, if used.
	3. Place a lever on the clutch. Powering it will stop the rotation, but the parts of the machine will not be placed, preventing the saplings from being destroyed.

## Linear Tree Farm

This design produces a very efficient farm that can be extended as far as desired in both length and width. It can simultaneously grow a variety of trees.

### Items Needed

 13 -  Mechanical Saw
   9 -  Deployer
   4 -  Chest
   2 -  Portable Storage Interface
   1 -  Smart Chute
   1 -  Slimeball
   1 -  Super Glue
   1 -  Minecart
 17 -  Rail
  3 -  Powered Rail
  2 -  Redstone Torch
1  -  Pulse Repeater
1  -  Lever
4 -  Redstone Dust
4 -  Torch
32 - Each type of seedling

### Layout

Begin by marking out a rectangle 23 blocks by 18 blocks. Against the right corner of one of the longer sides, dig a hole four blocks deep, five blocks in width, and seven blocks in length.

### Underground Rail Line

From inside the hole, dig a two block wide tunnel along the right side of the rectangle for the full length. The right side of the tunnel should be level with the bottom of the hole and three blocks high. The left side of the tunnel should start one block above the bottom of the hole and be two blocks high. This forms a bench along the left side of the tunnel on which to run the rails.

Extend the rail bench two blocks into the hole. Place an *unpowered* Powered Rail at the end of the extension followed by a normal rail then a *powered* Powered Rail. Fill the rest of the tunnel with rails using Powered Rails and Redstone Torches approximately every 16 blocks. End the rail line with a Powered Rail abutting a solid block. This will cause the harvester contraption to return to the start point.

Place a Cart Assembler over the final Powered Rail with the arrow pointing toward the farm. Right click and hold on the center part of either side of the Cart Assembler to bring up the setting menu. Slide the tab all the way to the right to select "**Lock rotation**".

### Harvesting Contraption

Stack two Linear Chassis on top of the Cart Assembler with the light colored sides facing forward and back. At ground level, place 23 Linear Chassis, with the second from the right lining up above the Cart Assembler. Set the sticky range of all of the Linear Chassis to 1 by holding Ctrl while using a wrench on one of the Linear Chassis.

Numbering the ground level chassis 1 to 23 from right to left (see picture to the right), place a column of two chassis above chassis 3, 8, 11, 15, 17, 19, 21, and 23. Place another chassis two blocks above chassis 12. The odd spacings account for the varying sizes of tree.

Using a Slimeball, coat the top chassis in each column and attach a Deployer with the hand facing down. Rotate the Deployer with a Wrench to place the filter slot facing backward. Place a different sapling into the filter slot of each Deployer. The five Deployers on the left are for the Birch, Acacia, Jungle, Spruce, and Oak in any order you desire. Place Dark Oak saplings in the pair of Deployers above chassis 11 and 12. Place a Cherry sapling in the Deployer above chassis 8. Finally place a Mangrove Propagule in the right most Deployer.

On the front side of the contraption, use a Slimeball to attach Mechanical Saws at ground level. Chassis 1 through 5 each get a Mechanical Saw so as to catch the Mangrove Roots that can be offset from the center of the tree. Place another saw at ground level in front of each of the remain deployers. Finally, using a Slimeball, attach two chests in any of the three double gaps between saws. These chest are to hold saplings for planting. However they will also accumulate a few of every other item. This is normal.

### Planting Template

The Deployers will attempt to plant a seedling on every grass block they encounter. Wooden slabs are placed to replace grass blocks in areas where planting is unwanted. Activate the harvesting contraption and temporarily remove it using a Wrench to give access to the grass beneath the contraption.

Replace three rows of grass with slabs along the bottom of the rectangle you laid out. Leaving a hole above the cart assembler is optional. At the far end of the grove, replace the end row with slabs. Place slabs in the planting area in accordance with the figure labeled "Sapling Planting Template." Planting spots for Birch, Acacia, Jungle, Spruce, and Oak are each separated by three slabs as you move along the columns of the template. Acacia and Spruce are offset from the others by two blocks. Dark Oak grows in a 2x2 plot, each separated by 2x2 slabs. Cherry and Mangrove trees are very large, so 5 slabs are used between each planting spot. The first Mangrove planting spot is also offset back to the sixth block from the contraption to allow room for the roots.

Place a few torches in the columns between the trees to encourage night growth.

### Storage

Place a Portable Storage Interface on the left wall three blocks above the bottom of the hole and in line with the chassis. Place a Smart Chute below the Portable Storage Interface and a Chest or Barrel below the Smart Chute. Set the Smart Chute's filter to extract EXACTLY 32. This will help to maintain enough saplings in the contraption chests for replanting.

Attach another Portable Storage Interface against the bottom Linear Chassis, facing the first Portable Storage Interface. Use Super Glue to attach this Portable Storage Interface rather than a Slimeball. The Super Glue does not react when clicking on a Linear Chassis. Instead, click on the Portable Storage Interface to start the gluing action, then click on the Cart Assembler to complete the action.

For long term harvesting, you can replace the Chest with a larger Item Vault or route the produce to other automation using a Mechanical Belt.

### Activating the Contraption

Confirm the Cart Assembler has **Lock Rotation** configured. If not, set it to lock rotation, place the contraption back in the assembler and cycle the power to off and on again. Remove the contraption with the Wrench.

Place a solid block immediately behind the Cart Assembler. It will stick out in mid air with a one block gap with the ground. This block will force the contraption to move forward when the Powered Rail is activated. Remove the Cart Assembler and replace the Powered Rail that also pops off. Also remove any power source you used to control the Cart Assembler.

While standing next to the solid block and facing the tree farm, place the contraption on the unpowered Powered Rail.

### Setting a Timer

The timer requires one Lever, two Redstone Repeaters, one Pulse Repeater, and four Redstone Dusts. Place a Redstone Repeater facing into the block beneath the contraption's cart. Set this repeater to four ticks delay. Place a Lever immediately to the left of the repeater. Place a Redstone Dust immediately in front of both the lever and repeater. Place a second repeater in front of either of the Redstone Dusts facing away from the mine cart. Set this to two tics delay. Place a Pulse Repeater next in front of the other Redstone Dust facing the cart. Set the delay to 5 minutes or as desired. Place two more Redstone Dusts in front of the Pulse Repeater and the second Redstone Repeater.

### Operating the Farm

The farm is now ready to operate. To start the clock, momentarily turn the lever on and back off. (Note a button generates too long of a pulse which interferes with the feedback loop.) The farm will run continuously until the clock is interrupted by breaking any one of the redstone dust lines. The contraption should keep a sufficient number of saplings in the contraption chest to allow replanting. It will pass excess saplings into storage.

*IMPORTANT*: There is a risk of running out of saplings. If you notice a column of trees is missing, simply place some more of that type of sapling in the contraption chest.