Guest User

CCraft Turtle Platform

a guest
Nov 19th, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. lua
  2. =
  3. print("How many times?")
  4. a=tonumber(read())
  5. x=1
  6. while x<=a do
  7. turtle.digDown()
  8. turtle.placeDown()
  9. turtle.turnRight()
  10. turtle.forward()
  11. turtle.turnLeft()
  12. turtle.digDown()
  13. turtle.placeDown()
  14. turtle.turnRight()
  15. turtle.forward()
  16. turtle.turnLeft()
  17. turtle.digDown()
  18. turtle.placeDown()
  19. turtle.forward()
  20. turtle.turnLeft()
  21. turtle.forward()
  22. turtle.forward()
  23. turtle.turnRight()
  24. x=x+1
  25. end
  26.  
  27. when x==a do
  28. turtle.turnRight()
  29. turtle.turnRight()
  30. turtle.forward(a)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment