SHOW:
|
|
- or go back to the newest paste.
| 1 | - | turtle.select(1) -- building cylinder |
| 1 | + | turtle.select(1) -- building cylinder |
| 2 | - | print("Building Cylinder")
|
| 2 | + | print("Building Cylinder")
|
| 3 | - | CylLoop |
| 3 | + | CylLoop |
| 4 | - | print(BuildLength + "Blocks have been placed.") |
| 4 | + | print(BuildLength,"Blocks have been placed.") |
| 5 | - | local SideLength = 10 |
| 5 | + | local SideLength = 10 |
| 6 | - | local BuildLength = 0 |
| 6 | + | local BuildLength = 0 |
| 7 | - | turtle.placeDown() |
| 7 | + | turtle.placeDown() |
| 8 | - | turtle.forward() |
| 8 | + | turtle.forward() |
| 9 | - | BuildLength++ |
| 9 | + | BuildLength++ |
| 10 | - | if(BuildLength < 10) |
| 10 | + | if(BuildLength < 10) |
| 11 | - | goto CylLoop |
| 11 | + | goto CylLoop |
| 12 | - | end |
| 12 | + | end |