Advertisement
visiongaming43

Untitled

May 19th, 2022
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. -- Fetching GPS Coordinates
  2. print("BEFORE YOU SETUP, MAKE SURE THE TURTLE IS CURRENTLY AT THE PROPER STARTING POSITION!!!\n")
  3. print("PROPER STARTING POSITION\n- TURTLE MUST BE AT A CORNER OF THE FARM\n- TURTLE MUST BE ABOVE A CHEST\n- TURTLE MUST BE FACING TOWARDS FARM\n")
  4. print("Please Press Enter To Continue...")
  5. io.read()
  6. local x,y,z = gps.locate()
  7.  
  8. -- Fetching Manual Values For Farm
  9. print("In order to use, the turtle MUST be on a chest at a corner of the farm!\n\nHow far would you like me to go forward?")
  10. local length = io.read()
  11.  
  12. print("How far would you like me to go to the side?")
  13. local width = io.read()
  14.  
  15. -- Creating file stats (x, y, z, length, width)
  16. local settings = fs.open("Settings", "w")
  17. settings.writeLine(x)
  18. settings.writeLine(y)
  19. settings.writeLine(z)
  20. settings.writeLine(length)
  21. settings.writeLine(width)
  22.  
  23. print("You have successfully set up your farming turtle!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement