Advertisement
aynoblo

Autocrafter compressed cobble setp 1

Apr 17th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. while true do
  2.     turtle.select(1)
  3.     turtle.suck()
  4.     while turtle.getItemCount()>9 do
  5.         print("if 1")
  6.         for i=2,16 do
  7.             print("for",i)
  8.             if turtle.getItemCount(i)~=0 then
  9.                 print("if 2")
  10.                 if turtle.getItemDetail(i).name=="extrautils2:compressedcobblestone" and turtle.getItemDetail(i).damage==0 then
  11.                     print("if 3")
  12.                     turtle.select(i)
  13.                     turtle.dropDown()
  14.                     turtle.select(1)
  15.                 end
  16.             end
  17.             if (i==2 or i==3 or i==5 or i==6 or i==7 or i==9 or i==10 or i==11) and turtle.getItemCount(i)<=2 then
  18.                 print("if 4")
  19.                 turtle.transferTo(i,1)
  20.             end
  21.         end
  22.         turtle.craft()
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement