SHOW:
|
|
- or go back to the newest paste.
| 1 | local tArgs = {}
| |
| 2 | tArgs[1] = os.getComputerLabel() | |
| 3 | - | tArgs[1] = "kitty" |
| 3 | + | ponies = true |
| 4 | - | if tArgs[1] == "kitty" then |
| 4 | + | |
| 5 | - | print("Usage: mine <master/slave>")
|
| 5 | + | for i=3, 16 do |
| 6 | - | return |
| 6 | + | for p=1, 64 do |
| 7 | turtle.select(1) | |
| 8 | - | turtle.select(16) |
| 8 | + | if not turtle.compare() then |
| 9 | - | redstone.setOutput("top", true)
|
| 9 | + | turtle.digDown() |
| 10 | - | redstone.setOutput("right", true)
|
| 10 | + | turtle.down() |
| 11 | - | if (tArgs[1] == "master") then |
| 11 | + | if not turtle.detect() then |
| 12 | - | read() |
| 12 | + | turtle.select(2) |
| 13 | - | while true do |
| 13 | + | turtle.placeDown() |
| 14 | - | for i=1 , 10 do |
| 14 | + | |
| 15 | - | turtle.refuel() |
| 15 | + | turtle.up() |
| 16 | - | os.sleep(2) |
| 16 | + | turtle.select(i) |
| 17 | - | redstone.setOutput("bottom", true)
|
| 17 | + | turtle.placeDown() |
| 18 | - | redstone.setOutput("left", true)
|
| 18 | + | turtle.forward() |
| 19 | - | os.sleep(0.2) |
| 19 | + | |
| 20 | - | redstone.setOutput("bottom", false)
|
| 20 | + | ponies = false |
| 21 | - | redstone.setOutput("left", false)
|
| 21 | + | break |
| 22 | - | turtle.dig() |
| 22 | + | |
| 23 | - | hey = turtle.forward() |
| 23 | + | |
| 24 | - | end |
| 24 | + | if ponies == false then |
| 25 | - | os.sleep(2) |
| 25 | + | break |
| 26 | end | |
| 27 | end |