Guest User

startup

a guest
Apr 4th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. term.clear();
  2. term.setCursorPos(1, 1);
  3. write("Gravel Processing Unit initialized");
  4.  
  5. while true do
  6.   for i = 3, 16 do
  7.     turtle.select(i);
  8.     turtle.transferTo(1);
  9.     turtle.select(1);
  10.    
  11.     if turtle.getItemCount(1) > 1 then
  12.       while turtle.getItemCount(1) > 1 do
  13.         turtle.placeUp();
  14.         turtle.digUp();
  15.       end
  16.     end
  17.   end
  18.  
  19.   turtle.select(2);
  20.   turtle.dropDown(turtle.getItemCount(2) - 1);
  21.  
  22.   for i = 3, 16 do
  23.     turtle.select(i);
  24.     turtle.dropDown();
  25.   end
  26.  
  27.   sleep(2);
  28. end
Advertisement
Add Comment
Please, Sign In to add comment