SHOW:
|
|
- or go back to the newest paste.
1 | function checkTree() | |
2 | - | if turtle.compare(1)==true then |
2 | + | turtle.select(1) |
3 | if turtle.compare()==true then | |
4 | redstone.setOutput("left",true) | |
5 | sleep(3.5) | |
6 | redstone.setOutput("left",false) | |
7 | plantTree() | |
8 | end | |
9 | end | |
10 | ||
11 | function plantTree() | |
12 | turtle.select(2) | |
13 | turtle.turnRight() | |
14 | turtle.suck(4) | |
15 | turtle.turnLeft() | |
16 | - | turtle.turnleft() |
16 | + | |
17 | turtle.forward() | |
18 | turtle.turnLeft() | |
19 | turtle.digDown() | |
20 | turtle.down() | |
21 | turtle.dig() | |
22 | turtle.place() | |
23 | turtle.turnLeft() | |
24 | turtle.dig() | |
25 | turtle.forward() | |
26 | turtle.turnRight() | |
27 | turtle.dig() | |
28 | turtle.place() | |
29 | turtle.turnRight() | |
30 | turtle.place() | |
31 | turtle.up() | |
32 | turtle.placeDown() | |
33 | turtle.back() | |
34 | end | |
35 | ||
36 | while true do | |
37 | checkTree() | |
38 | end |