SHOW:
|
|
- or go back to the newest paste.
| 1 | x = 1 | |
| 2 | y = 1 | |
| 3 | - | x = io.read() |
| 3 | + | z = 1 |
| 4 | print("please enter area you would like to mine.")
| |
| 5 | - | y = io.read() |
| 5 | + | |
| 6 | x = read() | |
| 7 | - | z = io.read() |
| 7 | + | |
| 8 | y = read() | |
| 9 | print("z = ")
| |
| 10 | z = read() | |
| 11 | tonumber(x) | |
| 12 | tonumber(y) | |
| 13 | - | function Mine() |
| 13 | + | tonumber(z) |
| 14 | - | repeat while x > 0 |
| 14 | + | |
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | ||
| 19 | function MineRow(x) | |
| 20 | while x > 0 | |
| 21 | - | --[[repeat while z > 0 |
| 21 | + | |
| 22 | turtle.dig() | |
| 23 | - | turtle.turnRight() |
| 23 | + | |
| 24 | turtle.digDown() | |
| 25 | turtle.digUp() | |
| 26 | x = x-1 | |
| 27 | - | turtle.turnRight |
| 27 | + | end |
| 28 | - | z = z-1 |
| 28 | + | end |
| 29 | - | x=10]] |
| 29 | + | MineRow(x) |