Niseg

turtle placer with piston

Jan 27th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 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.  
  11. repeat
  12.     for i=1,4 do
  13.  
  14.         turtle.place()
  15.         turtle.turnRight()
  16.         if slot<17 and turtle.getItemCount(slot)==0 then
  17.             slot=slot+1
  18.             if slot<17 then
  19.                 turtle.select(slot)
  20.             end
  21.  
  22.         end
  23.     end
  24.     redstone.setOutput("bottom",true);
  25.     sleep(0.2)
  26.     redstone.setOutput("bottom",false);
  27.     sleep(0.2)
  28. until slot>16
  29.  
  30.  
  31. print("done")
Advertisement
Add Comment
Please, Sign In to add comment