Guest User

Untitled

a guest
Dec 10th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. --Practice build:
  2.  
  3. function Place1()
  4. turtle.select(1)
  5. turtle.place(1)
  6. turtle.turnRight(1)
  7. turtle.forward(1)
  8. turtle.turnLeft(1)
  9. end
  10.  
  11. function Place2()
  12. turtle.turnLeft(1)
  13. turtle.forward(1)
  14. turtle.turnRight(1)
  15. turtle.select(1)
  16. turtle.place()
  17. end
  18.  
  19. term.write("How many across?"..": ")
  20. local howMany = read()
  21. print("You entered: "..howMany)
  22. term.write("How high?"..": ")
  23. local howMany2 = read()
  24. print("You entered: "..howMany2)
  25.  
  26. for i = 1, howMany do
  27. Place1()
  28. if i == howMany then
  29. turtle.up(1)
  30. end
  31. end
  32.  
  33. for h = 1,howMany2 do
  34. Place2()
  35. end
Advertisement
Add Comment
Please, Sign In to add comment