tompy90

setupSpiral

May 4th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("persistence")
  2. persistence.store("currentFace",0)
  3. persistence.store("currentRadius",0)
  4. persistence.store("currentX",0)
  5. persistence.store("currentZ",0)
  6. persistence.store("digCount",0)
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. print("Miner reset at starting position")
  10.  
  11. print("Welcome to SpiralMine 1.0")
  12. print("What radius would you like to mine to: ")
  13. endRadius = io.read()
  14. persistence.store("endRadius",endRadius)
  15. print("SpiralMine is ready to mine an area of radius "..endRadius.." centered around the turtle.")
  16. print("Simply run the program 'spiral' to initiate the mine, or set spiral to run on startup for automatic reset")
  17. print("Please ensure that you have a refueling enderchest in slot(15) and an unloading enderchest in slot(16)")
  18. print("Happy mining!")
Advertisement
Add Comment
Please, Sign In to add comment