View difference between Paste ID: VUW7a9x6 and uvvvvPhF
SHOW: | | - or go back to the newest paste.
1-
function digHole()
1+
function digMain()
2
	turtle.dig()
3
	turtle.forward()
4-
	turtle.digDown()
4+
	turtle.digUp()
5
end
6
7
function placeTorch()
8
	turtle.placeDown(1)
9
end
10
11-
print ("Die Turtle wird jetzt 30 Bloecke graben")
11+
12-
print ("und alle 5 Bloecke eine Fackel setzen")
12+
	turtle.turnRight()
13
	turtle.turnRight()
14
	turtle.forward(15)
15-
	turtle.up()
15+
16
17-
for i=1,5 do
17+
function placeBlockBelow()
18-
	digHole()
18+
19
end
20
21
function refuel()
22-
	
22+
	turtle.refuel(64)
23-
for i=1,5 do
23+
24-
	digHole()
24+
25
function dropChest()
26
	turtle.drop(4,9)
27-
for i=1,5 do
27+
28-
	digHole()
28+
29
print ("Sie haben 20 sekunden um dies zu machen.")
30
print (newline)
31
print ("<========================================>")
32-
	
32+
print ("Fackeln auf Slot 1 machen.")
33-
turtle.turnRight()
33+
print ("Cobblestone oder Erde auf Slot 2 machen.")
34-
turtle.turnRight()
34+
print ("Kohle auf Slot 3 machen")
35
print ("<========================================>")
36-
for j=1,13 do
36+
print (newline)
37-
	zurueck()
37+
38
39
os.sleep(20)
40-
turtle.down()
40+
41-
turtle.turnRight()
41+
for a=1,5 do
42-
turtle.turnRight()
42+
	digMain()
43
		os.sleep(0.5)
44
			if turtle.detect()==true do
45
				turtle.dig()
46
			then turtle.placeDown(1)
47
end