View difference between Paste ID: X3TfSMR2 and q1CdH3bN
SHOW: | | - or go back to the newest paste.
1
--[[
2
	2013 (c) psychedelixx
3-
	Minecraft Turtle: Redwood Chopper
3+
	Minecraft Turtle: Fir Chopper
4
	2013-05-22
5
6-
	Chops a whole redwood tree and returns to the ground. It should work on every other 2x2 tree as well.
6+
	Chops a whole fir tree and returns to the ground. It should work on every other 1x1 tree as well.
7
8
	Usage: 
9-
	- Place the turtle [T] on the ground in front of the redwood [R] tree on the left side:
9+
	- Place the turtle on the ground in front of the fir tree
10
        - use turtle and type "label set <name>"
11-
		[R][R]
11+
12-
		[R][R]
12+
        - type "pastebin get X3TfSMR2 fir"
13-
		[T]
13+
	- type "fir"
14
--]]
15-
		(top view)
15+
16
if turtle.getFuelLevel() == 0 then
17
	turtle.refuel()
18
end
19-
        - type "pastebin get q1CdH3bN redwood"
19+
20-
	- type "redwood"
20+
21
	print("I need fuel!")
22
else
23
	print("======== 2013 (c) psychedelixx ========")
24
	print("Let's go!")
25
	h=0
26
	turtle.dig()
27
	turtle.forward()
28
	repeat
29
		print("Fuel: " .. turtle.getFuelLevel())
30
		turtle.digUp()
31
		turtle.up()
32
		h = h+1
33
		
34
		if turtle.getFuelLevel() < 2 then 
35
			turtle.refuel() 
36
		end
37-
		turtle.dig()
37+
38
	while h>0 do
39
		print("Fuel: " .. turtle.getFuelLevel())
40
		turtle.down()
41
		h = h-1
42
		
43
		if turtle.getFuelLevel() < 2 then 
44
			turtle.refuel() 
45
		end
46-
	turtle.turnRight()
46+
47
end