Razara

massfab

Feb 7th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. while true do
  2. redstone.setOutput("top", false)
  3. print("feeding scraps")
  4. for i=1,16 do
  5.   turtle.select(i)
  6.  
  7.   while turtle.getItemCount(i)>0 do
  8.     if turtle.dropUp()==false then
  9.           sleep(5)
  10.     end
  11.   end
  12. end
  13. print("out of scraps .. turning off")
  14. redstone.setOutput("top", true)
  15. for i=5,1,-1 do
  16.   print("sleeping for "..i)
  17.   sleep(60)
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment