SHOW:
|
|
- or go back to the newest paste.
| 1 | - | print("STRIPMINE STARTEN")
|
| 1 | + | function digMain() |
| 2 | - | print("PN Creep4Play fuer mehr Info.")
|
| 2 | + | turtle.dig() |
| 3 | - | os.sleep(4) |
| 3 | + | turtle.forward() |
| 4 | - | term.clear() |
| 4 | + | turtle.digUp() |
| 5 | - | term.setCursorPos(1,1) |
| 5 | + | |
| 6 | ||
| 7 | - | function digU() |
| 7 | + | function placeTorch() |
| 8 | - | while turtle.detectUp() do |
| 8 | + | turtle.placeDown(1) |
| 9 | - | turtle.digUp() |
| 9 | + | |
| 10 | - | end |
| 10 | + | |
| 11 | function zurueck() | |
| 12 | turtle.turnRight() | |
| 13 | - | function digF() |
| 13 | + | turtle.turnRight() |
| 14 | - | while turtle.detect() do |
| 14 | + | turtle.forward(15) |
| 15 | - | turtle.dig() |
| 15 | + | |
| 16 | - | end |
| 16 | + | |
| 17 | function placeBlockBelow() | |
| 18 | turtle.placeDown(2) | |
| 19 | - | function digD() |
| 19 | + | |
| 20 | - | while turtle.detectDown() do |
| 20 | + | |
| 21 | - | turtle.digDown() |
| 21 | + | function refuel() |
| 22 | - | end |
| 22 | + | turtle.refuel(64) |
| 23 | end | |
| 24 | ||
| 25 | - | function goU(proof) |
| 25 | + | function dropChest() |
| 26 | - | repeat |
| 26 | + | turtle.drop(4,9) |
| 27 | - | digU() |
| 27 | + | |
| 28 | - | if proof then |
| 28 | + | |
| 29 | - | if not proofFuel(false) then |
| 29 | + | print ("Sie haben 20 sekunden um dies zu machen.")
|
| 30 | - | return false |
| 30 | + | print (newline) |
| 31 | - | end |
| 31 | + | print ("<========================================>")
|
| 32 | - | end |
| 32 | + | print ("Fackeln auf Slot 1 machen.")
|
| 33 | - | until turtle.up() |
| 33 | + | print ("Cobblestone oder Erde auf Slot 2 machen.")
|
| 34 | - | return true |
| 34 | + | print ("Kohle auf Slot 3 machen")
|
| 35 | print ("<========================================>")
| |
| 36 | print (newline) | |
| 37 | - | function goF(proof) |
| 37 | + | print ("Viel spass :D")
|
| 38 | - | repeat |
| 38 | + | |
| 39 | - | digF() |
| 39 | + | os.sleep(20) |
| 40 | - | if proof then |
| 40 | + | |
| 41 | - | if not proofFuel(false) then |
| 41 | + | for a=1,5 do |
| 42 | - | return false |
| 42 | + | digMain() |
| 43 | - | end |
| 43 | + | os.sleep(0.5) |
| 44 | - | end |
| 44 | + | if turtle.detect()==true do |
| 45 | - | until turtle.forward() |
| 45 | + | turtle.dig() |
| 46 | - | return true |
| 46 | + | |
| 47 | if turtle.detectDown()==false do | |
| 48 | turtle.placeDown(2) | |
| 49 | - | function goD(proof) |
| 49 | + | |
| 50 | - | repeat |
| 50 | + | |
| 51 | - | digD() |
| 51 | + | turtle.placeDown(1) |
| 52 | - | if proof then |
| 52 | + | |
| 53 | - | if not proofFuel(false) then |
| 53 | + | for a=1,5 do |
| 54 | - | return false |
| 54 | + | digMain() |
| 55 | - | end |
| 55 | + | os.sleep(0.5) |
| 56 | - | end |
| 56 | + | if turtle.detect()==true do |
| 57 | - | until turtle.down() |
| 57 | + | turtle.dig() |
| 58 | - | return true |
| 58 | + | |
| 59 | if turtle.detectDown()==false do | |
| 60 | turtle.placeDown(2) | |
| 61 | - | function proofFuel(wait) |
| 61 | + | |
| 62 | - | while turtle.getFuelLevel()<(mainGone+subGone+2) do |
| 62 | + | |
| 63 | - | local broken=false |
| 63 | + | turtle.placeDown(1) |
| 64 | - | for i=16,1,-1 do |
| 64 | + | |
| 65 | - | if turtle.getItemCount(i)>0 then |
| 65 | + | for a=1,5 do |
| 66 | - | turtle.select(i) |
| 66 | + | digMain() |
| 67 | - | if turtle.refuel(1) then |
| 67 | + | os.sleep(0.5) |
| 68 | - | broken=true |
| 68 | + | if turtle.detect()==true do |
| 69 | - | break |
| 69 | + | turtle.dig() |
| 70 | - | end |
| 70 | + | |
| 71 | - | end |
| 71 | + | if turtle.detectDown()==false do |
| 72 | - | end |
| 72 | + | turtle.placeDown(2) |
| 73 | - | if not broken then |
| 73 | + | |
| 74 | - | if wait then |
| 74 | + | |
| 75 | - | os.sleep(1) |
| 75 | + | turtle.placeDown(1) |
| 76 | - | else |
| 76 | + | |
| 77 | - | return false |
| 77 | + | end |