SHOW:
|
|
- or go back to the newest paste.
1 | if turtle.getFuelLevel() < 1000 then | |
2 | turtle.select(16) | |
3 | turtle.refuel(64) | |
4 | end | |
5 | local getItem = tonumber(turtle.getItemCount(1)) | |
6 | function AntiObstruct() | |
7 | if turtle.detectDown() then | |
8 | turtle.digDown() | |
9 | end | |
10 | end | |
11 | function PlaceBlock() | |
12 | turtle.placeDown() | |
13 | turtle.forward() | |
14 | end | |
15 | function roundCorner() | |
16 | turtle.forward() | |
17 | turtle.turnRight() | |
18 | turtle.forward() | |
19 | turtle.turnLeft() | |
20 | end | |
21 | function BuildCylinder() | |
22 | local BuildLength = 0 | |
23 | if (getItem < 1) then print("Place materials in slot 1 to start building.") else | |
24 | turtle.select(1) | |
25 | end | |
26 | local BuildLength == 0 | |
27 | if (BuildLength < 10) then PlaceBlock() else | |
28 | roundCorner() | |
29 | end | |
30 | local BuildLength == 0 | |
31 | if (BuildLength < 2) then PlaceBlock() else | |
32 | roundCorner() | |
33 | BuildLength == 0 | |
34 | end | |
35 | local BuildLength == 0 | |
36 | if (BuildLength < 1) then PlaceBlock() else | |
37 | roundCorner() | |
38 | BuildLength == 0 | |
39 | end | |
40 | local BuildLength == 0 | |
41 | if (BuildLength < 2) then PlaceBlock() else | |
42 | roundCorner() | |
43 | BuildLength == 0 | |
44 | end | |
45 | local BuildLength == 0 | |
46 | if (BuildLength < 10) then PlaceBlock() else | |
47 | roundCorner() | |
48 | BuildLength == 0 | |
49 | end | |
50 | term.clear() | |
51 | BuildCylinder() | |
52 | end |