DiaManD

RemoteOrder

Aug 19th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. ps = left
  2. t = turtle
  3. rs = redstone
  4. function get()
  5. shell.run("pastebin","get","mKS9SxDN","cprm")
  6. end
  7. function extract()
  8. file = fs.open("cprm")
  9. file.readLine(prm[1])
  10. file.close()
  11. s = "prm[1]"
  12. end
  13. function cooldown()
  14. if s = "coolDown" then
  15. rs.SetOutput("ps",true)
  16. end
  17. function rise()
  18. if s = "rise" then
  19. rs.SetOutput("ps",false)
  20. end
  21. while true do
  22. get()
  23. extract()
  24. cooldown()
  25. rise()
  26. sleep(180)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment