Advertisement
Aikonn

FeedScraps

Jan 20th, 2013
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. while true do
  2.  
  3. redstone.setOutput("top", false)
  4. print("feeding scraps")
  5. for i=1,16 do
  6.   turtle.select(i)
  7.   while (turtle.getItemCount(i)>0) do
  8.     if turtle.dropUp()==false then
  9.       -- redstone.setOutput("top",true)
  10.       -- sleep(0.5)
  11.       -- redstone.setOutput("top",false)
  12.       -- uncomment 3 lines above, if you use RP2 Filter to pull UU from Fabr.
  13.       sleep(5)
  14.     end  
  15.   end
  16. end
  17. print("out of scraps .. turning off")
  18. redstone.setOutput("top", true)
  19.  
  20. for i=5,1,-1 do
  21.   print("sleeping for "..i)
  22.   sleep(60)
  23. end
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement