Advertisement
Rusettsten

Danet Shell

May 27th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. --Danet Shell (for turtle servers)
  2. id = 8
  3. function receive()
  4. rednet.open("back")
  5. hostId,command = rednet.receive()
  6. if command == "harvest" then
  7. rednet.send(id,"till","danetFarm")
  8. turtId,response = rednet.receive()
  9.  
  10. if response == "tillComplete" then
  11. print("Till Stage 1 Complete.")
  12. rednet.send(id,"seed","danetFarm")
  13. response = nil
  14. turtId,response = rednet.receive()
  15. end
  16. if response == "seedComplete" then
  17. print("Seed Complete.")
  18. rednet.send(id,"chest","danetFarm")
  19. print("Chest Complete.")
  20. print(" ")
  21. receive()
  22. end
  23. receive()
  24. end
  25. receive()
  26. end
  27. receive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement