• Sign Up
• Login
• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Jan 20th, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. -- private use of Pirmax's ComputerCraft Turtle code of a tree farm
2.
3. while true do
4.
5. turtle.select(16)
6. if turtle.compareDown() == true then
7. turtle.turnRight()
8. end
9.
10. turtle.select(15)
11. if turtle.compareDown() == true then
12.     turtle.turnRight()
13.     --sleep(2)
14.     turtle.select(13)
15.     if turtle.compare() == true then
16.         i = 1
17.         while i <= 6 do
18.             turtle.select(3)
19.             turtle.dig()
20.             turtle.select(2)
21.             turtle.digUp()
22.             turtle.up()
23.             i = i + 1
24.         end
25.         i = 1
26.         while i <= 6 do
27.             turtle.down()
28.             i = i + 1
29.         end
30.     end
31.     turtle.select(2)
32.     turtle.place()
33.     turtle.turnLeft()
34. end
35.
36. if turtle.getFuelAmount() <= 200 then
37.     print("Il manque du carburant !")
38.     turtle.select(10)
39.     turtle.placeUp()
40.
41.     for i = 3, 12 do
42.         turtle.select(i)
43.         turtle.dropUp()
44.     end
45.
46.     turtle.select(16)
47.     turtle.dropUp()
48.     turtle.select(15)
49.     turtle.dropUp()
50.     turtle.select(14)
51.     turtle.dropUp()
52.     turtle.select(13)
53.     turtle.dropUp()
54.
55.     turtle.select(2)
56.     turtle.dropUp()
57.
58.     turtle.select(1)
59.     turtle.suckUp(16)
60.     turtle.craft()
61.     turtle.refuel(64)
62.
63.     -- Process inverse
64.
65.     for i = 3, 12 do
66.         turtle.select(i)
67.         turtle.suckUp()
68.     end
69.
70.     turtle.select(16)
71.     turtle.suckUp()
72.     turtle.select(15)
73.     turtle.suckUp()
74.     turtle.select(14)
75.     turtle.suckUp()
76.     turtle.select(13)
77.     turtle.suckUp()
78.
79.     turtle.select(2)
80.     turtle.suckUp()
81.
82.     turtle.select(10)
83.     turtle.digUp()
84. end
85.
86. turtle.select(14)
87. if turtle.compareDown() == true then
88. turtle.turnRight()
89. turtle.select(3)
90. turtle.drop()
91. turtle.turnLeft()
92. end
93.
94. turtle.forward()
95.
96. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Top