vipaholic

strip

Oct 21st, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. --  --  --  --  --  --  GLAS
  2. --  FUNKTION VORNE
  3. function v()
  4.     if not turtle.select() then
  5.         turtle.select(13)
  6.         turtle.place()
  7.     end
  8. end
  9. --  FUNKTION OBEN
  10. function o()
  11.     if not turtle.selectUp() then
  12.         turtle.select(13)
  13.         turtle.placeUp()
  14.     end
  15. end
  16. --  FUNKTION UNTEN
  17. function u()
  18.     if not turtle.selectDown() then
  19.         turtle.select(14)
  20.         turtle.placeUp()
  21.     end
  22. end
  23. --  --  --  --  --  --  FUNKTION LINKS & RECHTS
  24. function lr()
  25.     turtle.turnLeft()
  26.         if not turtle.select() then
  27.             turtle.select(15)
  28.             turtle.place()
  29.         end
  30.     turtle.turnRight()
  31.     turtle.turnRight()
  32.         if not turtle.select() then
  33.             turtle.select(15)
  34.             turtle.place()
  35.         end
  36.     turtle.turnLeft()
  37. end
  38. --  --  --  --  --  --  FUNKTION DIG
  39. function dig()
  40.         if turtle.select() then
  41.             turtle.dig()
  42.             os.sleep(0.5)
  43.         end
  44. end
  45. --  --  --  --  --  --  FUNKTION EINGANG
  46. function eingang()
  47.     turtle.up()
  48.     dig()
  49.     turtle.forward()
  50.     lr()
  51.     o()
  52.     dig()
  53.     turtle.forward()
  54.     lr()
  55.     o()
  56.     turtle.digDown()
  57.     turtle.down()
  58.     lr()
  59.     u()
  60. end
  61. --  --  --  --  --  --  ########### PROGRAMM
  62. eingang()
Advertisement
Add Comment
Please, Sign In to add comment