Advertisement
mandydax

Seed Oil Helper (FTB Turtle script)

Feb 26th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. --Crafting turtle gets items from
  2. --chest in front of it, compares
  3. --them to pumpkin above it,
  4. --crafts pumpkins into seeds,
  5. --and drops items down into hopper/
  6. --squeezer, checking if there is room
  7. function craftIt()
  8.   turtle.craft()
  9.   turtle.select(2)
  10.   selection=2
  11. end
  12.  
  13. function dropIt()
  14.   repeat
  15.     turtle.dropDown()
  16.   until turtle.getItemCount(selection)==0
  17. end
  18.  
  19. while true do
  20.   selection=1
  21.   turtle.select(1)
  22.   if turtle.getItemCount(1)==0 then
  23.     if turtle.suck()==false then
  24.       sleep(30)
  25.     end
  26.   end
  27.   if turtle.compareUp() then
  28.     craftIt()
  29.   end
  30.   dropIt()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement