View difference between Paste ID: UsGcCcsQ and UHqMmVxn
SHOW: | | - or go back to the newest paste.
1
function digMain()
2
	turtle.dig()
3
	turtle.forward()
4
	turtle.digUp()
5
end
6
7
function placeTorch()
8
	turtle.placeDown(1)
9
end
10
11
function zurueck()
12
	turtle.turnRight()
13
	turtle.turnRight()
14
	turtle.forward(15)
15
end
16
17
function placeBlockBelow()
18
	turtle.placeDown(2)
19
end
20
21
function refuel()
22
	turtle.refuel(64)
23
end
24
25
function dropChest()
26
	turtle.drop(4,9)
27
end
28
29
print ("Sie haben 20 sekunden um dies zu machen.")
30
print (newline)
31
print ("<========================================>")
32
print ("Fackeln auf Slot 1 machen.")
33
print ("Cobblestone oder Erde auf Slot 2 machen.")
34
print ("Kohle auf Slot 3 machen")
35
print ("<========================================>")
36
print (newline)
37
print ("Viel spass :D")
38
39
os.sleep(20)
40
41
for a=1,5 do
42
	digMain()
43
end
44-
			if turtle.detect()==true do
44+
45-
			turtle.dig()
45+
46-
			
46+
47-
			if turtle.detectDown()==false do
47+
48-
			turtle.placeDown(2)
48+
49
end
50
51
turtle.placeDown(1)
52
53
for a=1,5 do
54
	digMain()
55
		os.sleep(0.5)
56-
			if turtle.detect()==true do
56+
57-
			turtle.dig()
57+
58-
			
58+
59-
			if turtle.detectDown()==false do
59+
60-
			turtle.placeDown(2)
60+