Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Holz

DerMarten Jul 17th, 2015 (edited) 163 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. run = true
  2. letzteEbene = false
  3. function checkForward()
  4.         if turtle.detect() then
  5.                 turtle.dig()
  6.         end
  7.         turtle.forward()
  8. end
  9. function checkDown()
  10.         if turtle.detect() then
  11.                 turtle.digDown()
  12.         end
  13.         turtle.down()
  14. end
  15. function checkUp()
  16.         if turtle.detectUp() then
  17.                 turtle.digUp()
  18.         end
  19.         turtle.up()
  20. end
  21. function goHome()
  22.         while turtle.detectDown() == false do
  23.                         checkDown()
  24.         end
  25. end
  26. function ebene()
  27.         turtle.dig()
  28.         checkForward()
  29.         turtle.dig()
  30.         checkForward()
  31.         turtle.turnRight()
  32.         turtle.dig()
  33.         checkForward()
  34.         turtle.turnRight()
  35.         turtle.dig()
  36.         checkForward()
  37.         turtle.dig()
  38.         checkForward()
  39.         turtle.turnLeft()
  40.         turtle.dig()
  41.         checkForward()
  42.         turtle.turnLeft()
  43.         turtle.dig()
  44.         checkForward()
  45.         turtle.dig()
  46.         checkForward()
  47.         turtle.turnLeft()
  48.         checkForward()
  49.         checkForward()
  50.         turtle.turnLeft()
  51.         checkForward()
  52.         checkForward()
  53.         turtle.turnLeft()
  54.         turtle.turnLeft()
  55. end
  56. while run do
  57.         if turtle.detectUp() == false then
  58.                 if letzteEbene then
  59.                        
  60.                 end
  61.                 letzteEbene = true
  62.                 print("ENDE")
  63.                 run = false
  64.         end
  65.         ebene()
  66.         if run then
  67.         checkUp()
  68.         end
  69. end
  70. goHome()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top