Niseg

turtle gravel/sand dropper

Jan 20th, 2015
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. local turnLeft=true;
  2. local failCount=0;
  3. local breakFloor=true;
  4. local sel=0;
  5. local slot=1
  6. local width=1;
  7. local length=1;
  8.  
  9. turtle.select(slot)
  10. for i=1,16 do
  11. turtle.up()
  12. end
  13.  
  14. repeat
  15.  
  16.     if not turtle.place() then
  17.     turtle.turnRight()
  18.     end
  19. if turtle.getItemCount(slot)==0 then
  20.     slot=slot+1
  21.     if slot<17 then
  22.     turtle.select(slot)
  23.     end
  24. end
  25. until slot>16
  26. for i=1,16 do
  27. turtle.down()
  28. end
  29.  
  30. print("done")
Advertisement
Add Comment
Please, Sign In to add comment