Advertisement
Guest User

mine

a guest
Mar 18th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. -- Program:
  2. --   mine
  3. -- Original program by Direwolf20
  4. -- Modified by Kzorith
  5. -- Description:
  6. --   Operates the mining wells and MFFS caterpillar drive
  7. -- Hardware requirements:
  8. --   1 Advanced Mining Turtle
  9. --   1 Rednet cable
  10.  
  11. --  print what we are doing
  12. print("Mining for 30 seconds")
  13.  
  14. --  make sure the rednet cable is ready
  15. turtle.select(1)
  16. --  place it under the turtle
  17. turtle.placeDown()
  18. --  set a redstone signal to activate the tesseract
  19. --    (mine is blue)
  20. rs.setBundledOutput("bottom",colors.blue)
  21. --  wait 30 seconds for the mining operation to complete
  22. --    (I'm not pumping as much power into this as DW20 does)
  23. sleep(30)
  24. --  turn off all restone signals
  25. rs.setBundledOutput("bottom",0)
  26. --  print what we are doing
  27. print("Moving platform")
  28. --  wait 5 seconds
  29. sleep(5)
  30. --  set a redstone signal to activate the MFFS caterpillar drive
  31. --    (Mine is green)
  32. rs.setBundledOutput("bottom",colors.green)
  33. --  break the rednet cable
  34. turtle.digDown()
  35. --  move the turtle forward
  36. turtle.forward()
  37. --  wait 4 seconds for the platform to catch up
  38. sleep(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement