Guest User

startup

a guest
May 11th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. function g64(tbl)
  2.     for i=1,#tbl do
  3.         local total = 0
  4.         repeat
  5.             local count = peripheral.call("front", "pushItems", "south", 1, 64, tbl[i])
  6.             print(tbl[i], count)
  7.             total = total + count
  8.         until total == 64 or turtle.getItemCount(tbl[i]) == 64
  9.     end
  10. end
  11. local function push()
  12.     peripheral.call("top", "pullItems", "down", 4, 64, 1)
  13. end
  14. turtle.select(4)
  15. while true do
  16.     g64({1,2,3,5,6,7,9,10,11})
  17.     repeat sleep(0.1) push() until turtle.getItemCount(4) == 0
  18.     turtle.craft()
  19. end
Add Comment
Please, Sign In to add comment