Advertisement
Guest User

landmark

a guest
Nov 26th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. if fs.exists("move") == false then
  2.   shell.run("pastebin get 9QFxP4Ff move")
  3. end
  4. os.loadAPI("move")
  5. function placeLandMark()
  6.   turtle.select(1)
  7.   turtle.dig()
  8.   turtle.place()
  9.   turtle.fUp(1)
  10.   turtle.select(2)
  11.   turtle.dig()
  12.   turtle.place()
  13.   turtle.fDown(1)
  14. end
  15. x = 3
  16. turtle.fForward(x)
  17. placeLandMark()
  18. turtle.turnAround()
  19. turtle.fForward(x)
  20. turtle.turnLeft()
  21. turtle.fForward(x)
  22. placeLandMark()
  23. turtle.turnAround()
  24. turtle.fForward(x-1)
  25. turtle.fUp(x-1)
  26. placeLandMark()
  27. turtle.fDown(x-1)
  28. placeLandMark()
  29. turtle.turnLeft()
  30. turtle.fForward()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement