Advertisement
Jeyjey0

FallTunnel API for Mobfarm

Feb 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. function selectSlot()
  7. slot = 0
  8. count = 0
  9. for i=1,16 do
  10. slot = slot + 1
  11. if slot == 17 then
  12. slot = 1
  13. end
  14. turtle.select(slot)
  15. count = turtle.getItemCount()
  16. if count > 0 then
  17. break
  18. end
  19. end
  20. end
  21.  
  22.  
  23.  
  24.  
  25. drop = 0
  26. function getItems()
  27. icount = 0
  28. turtle.select(1)
  29. for i=1,16 do
  30.  
  31. drop = drop + 1
  32. if drop == 17 then
  33. drop = 1
  34. end
  35. turtle.select(drop)
  36. icount2 = turtle.getItemCount()
  37. icount = icount + icount2
  38. end
  39. return icount
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement