View difference between Paste ID: N3ZjnvQh and 11qTwuK8
SHOW: | | - or go back to the newest paste.
1-
-- chfirfarm
1+
-- chcollector
2-
-- refill fuel in slot FUEL_SLOT 
2+
-- doesn't need fuel, doesn't move
3-
-- requires at least 4 saplings in slot SAPLING_SLOT 
3+
-- mines what's down, deposits it up
4-
-- 2x2 planting area in front (and to the right) of the turtle
4+
5-
-- must start with 4 saplings planted in the planting area or even the tree can be already grown
5+
6-
-- wood deposit anywhere behind the turtle, but there has to be some stopping block
6+
	os.sleep(0.5)
7-
-- auxiliary sapling storage somewhere below the starting turtle position (directly under it) where fallen saplings should be collected
7+
	turtle.select(1)
8-
-- if the turtle stops at the wood deposit, it means it's full and needs to be emptied
8+
	turtle.digDown()
9
	os.sleep(0.5)
10
	turtle.select(1)
11-
local FUEL_SLOT = 1
11+
	turtle.dropUp(64)
12-
local SAPLING_SLOT = 2
12+