SHOW:
|
|
- or go back to the newest paste.
1 | rednet.open("right") | |
2 | local func | |
3 | local tArgs = {...} | |
4 | ||
5 | function cleanup() | |
6 | for i = 1,12 do | |
7 | turtle.select(i) | |
8 | turtle.dropDown() | |
9 | end | |
10 | end | |
11 | ||
12 | function place() | |
13 | turtle.select(16) | |
14 | turtle.place() | |
15 | turtle.down() | |
16 | turtle.select(15) | |
17 | turtle.place() | |
18 | turtle.select(14) | |
19 | turtle.placeDown() | |
20 | end | |
21 | ||
22 | function remove() | |
23 | turtle.select(14) | |
24 | turtle.digDown() | |
25 | turtle.select(15) | |
26 | turtle.dig() | |
27 | turtle.up() | |
28 | turtle.select(16) | |
29 | turtle.dig() | |
30 | end | |
31 | ||
32 | - | function fuel() |
32 | + | |
33 | - | turtle.select(13) |
33 | + | |
34 | sleep(30) | |
35 | - | turtle.select(1) |
35 | + | |
36 | - | turtle.suckUp() |
36 | + | |
37 | - | turtle.dropUp(turtle.getItemCount(1) - 4) |
37 | + | |
38 | - | turtle.refuel() |
38 | + | |
39 | - | turtle.select(13) |
39 | + | |
40 | turtle.forward() | |
41 | end | |
42 | ||
43 | - | function fuelBoss() |
43 | + | |
44 | - | turtle.select(13) |
44 | + | |
45 | - | turtle.placeUp() |
45 | + | |
46 | - | turtle.select(1) |
46 | + | |
47 | - | turtle.suckUp() |
47 | + | |
48 | - | turtle.dropUp(turtle.getItemCount(1) - 4) |
48 | + | |
49 | - | turtle.select(13) |
49 | + | |
50 | - | turtle.digUp() |
50 | + | |
51 | - | turtle.up() |
51 | + | |
52 | - | turtle.turnRight() |
52 | + | |
53 | - | turtle.select(1) |
53 | + | |
54 | - | turtle.drop() |
54 | + | |
55 | - | turtle.turnLeft() |
55 | + | |
56 | - | turtle.down() |
56 | + | |
57 | func = loadstring(msg.."(...)") | |
58 | setfenv(func, getfenv()) | |
59 | - | function checkFuel() |
59 | + | |
60 | - | if turtle.getFuelLevel() < 400 then |
60 | + | |
61 | - | fuel() |
61 | + |