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 | - | ::Loop:: |
5 | + | |
6 | function AntiObstruct() | |
7 | if turtle.detectDown() then | |
8 | turtle.digDown() | |
9 | - | if(BuildLength = 0) |
9 | + | |
10 | - | print("Building Cylinder") |
10 | + | function PlaceBlock() |
11 | - | print(BuildLength," Blocks have been placed.") |
11 | + | |
12 | turtle.forward | |
13 | end | |
14 | function roundCorner() | |
15 | - | if(BuildLength < 10) then BuildLength++ else goto Loop |
15 | + | |
16 | turtle.turnRight() | |
17 | turtle.forward() | |
18 | turtle.turnLeft() | |
19 | end | |
20 | function BuildCylinder() | |
21 | if(BuildLength < 10) then PlaceBlock() else | |
22 | roundCorner() | |
23 | if(BuildLength < 2) then PlaceBlock() else | |
24 | roundCorner() | |
25 | if(BuildLength < 1) then PlaceBlock() else | |
26 | roundCorner() | |
27 | if(BuildLength < 2) then PlaceBlock() else | |
28 | roundCorner() | |
29 | if(BuildLength < 10) then PlaceBlock() else | |
30 | roundCorner() | |
31 | turtle.select(1) -- building cylinder | |
32 | term.clear() | |
33 | end |