Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. function FirstScreen()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. write("My First Minining Program")
  5. sleep(3)
  6. end
  7.  
  8. function ClearScreen()
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. end
  12.  
  13. function AskForCoordinate()
  14. ClearScreen()
  15. local input = read()
  16.  
  17. term.setCursorPos(1,1)
  18. write("What is the x-Position of the Mining Turtle?")
  19. x = input
  20. ClearScreen()
  21.  
  22. term.setCursorPos(1,1)
  23. write("What is the z-Position of the Mining Turtle?")
  24. z = input
  25. ClearScreen()
  26.  
  27. term.setCursorPos(1,1)
  28. write("What is the y-Position of the Mining Turtle?")
  29. y = input
  30. ClearScreen()
  31.  
  32. term.setCursorPos(1,1)
  33. write("Is that right?")
  34.  
  35. term.setCursorPos(2,1)
  36. write("x: ", x)
  37.  
  38. term.setCursorPos(3,1)
  39. write("z: ", z)
  40.  
  41. term.setCursorPos(4,1)
  42. write("y: ", y)
  43.  
  44. end
  45.  
  46. x = 0
  47. z = 0
  48. y = 0
  49.  
  50. FirstScreen()
  51. AskForCoordinate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement