SHOW:
|
|
- or go back to the newest paste.
1 | length = tonumber(arg[1]) | |
2 | if length == nil then | |
3 | print("set length please") | |
4 | exit() | |
5 | end | |
6 | if turtle.getFuelLevel() <= (3*length) then | |
7 | print("not enough fuel") | |
8 | end | |
9 | ||
10 | require("movement") | |
11 | for i=0,length do | |
12 | move_to(0,i) | |
13 | turtle.placeDown() | |
14 | turtle.turnLeft() | |
15 | turtle.place() | |
16 | turtle.turnLeft() | |
17 | turtle.place() | |
18 | turtle.dig() | |
19 | turtle.turnLeft() | |
20 | turtle.place() | |
21 | while not turtle.up() do turtle.digUp() end | |
22 | turtle.placeUp() | |
23 | turtle.place() | |
24 | turtle.turnRight() | |
25 | turtle.place() | |
26 | turtle.dig() | |
27 | turtle.turnRight() | |
28 | turtle.place() | |
29 | turtle.turnRight() | |
30 | turtle.down() | |
31 | end | |
32 | move_to(0,0) | |
33 |