Advertisement
blaize9

CC Gate Reader Item Charger

Apr 30th, 2013
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. m = peripheral.wrap("right") -- Needs Gate Reader
  2.  
  3. function checkDoneCharging()
  4. data = m.get()
  5. return(data["Discharging Empty Item"])
  6. end
  7.  
  8. function emptyMFSU()
  9. turtle.select(16)
  10. turtle.suckUp()
  11. turtle.drop()
  12. end
  13.  
  14. function fillMFSU()
  15. turtle.select(1)
  16. turtle.suckDown()
  17. turtle.dropUp()
  18. end
  19.  
  20. while true do
  21. if checkDoneCharging() then
  22. emptyMFSU()
  23. fillMFSU()
  24. end
  25. sleep(5)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement