Advertisement
Plazter

turtle chest 32

Oct 9th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. c = peripheral.wrap("front")
  2.  
  3. while true do
  4. while not c.getStackInSlot(0).id == 266 do
  5. repeat sleep(2)
  6. until c.getStackInSlot(0).id == 266
  7. break
  8. end
  9.  
  10.  
  11. while c.getStackInSlot(0).id == 266 do
  12.  
  13. if c.getStackInSlot(0).id == 266 and c.getStackInSlot(0).qty >= 32 then
  14. turtle.suck()
  15. turtle.transferTo(2,5)
  16. turtle.drop()
  17. elseif not c.getStackInSlot(0).id == 266 then
  18. print("Not the right item..")
  19. elseif c.getStackInSlot(0).id == 266 and c.getStackInSlot(0).qty < 1 then
  20. print("Not Enough")
  21. end
  22. sleep(1)
  23. break
  24. end
  25. sleep(2)
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement