Advertisement
RabaGhast

Compress

Oct 29th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. n = 64
  2. while true do
  3.   low = false
  4.   turtle.select(1)
  5.   for i = 1,12 do
  6.     if (turtle.getSelectedSlot() == 4 or turtle.getSelectedSlot() == 8 or turtle.getSelectedSlot() == 12) then
  7.       turtle.dropDown()
  8.     else
  9.       turtle.suckDown(64-turtle.getItemCount())
  10.       if turtle.getItemCount() < 64 then
  11.         low = true
  12.       end
  13.     end
  14.     turtle.select(turtle.getSelectedSlot()+1)
  15.   end
  16.   if low==true then
  17.     for i = 1,12 do
  18.       turtle.select(i)
  19.       turtle.dropDown()
  20.     end
  21.     print("Not enough cobble. Sleeping...")
  22.     sleep(600)
  23.   else
  24.     turtle.craft(n)
  25.     turtle.dropUp()
  26.   end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement