Advertisement
denvys5

Nuclear Controller

Feb 4th, 2014
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. p = peripheral.wrap("left")
  2.  
  3. -- { local slots1 = {}
  4. slots1[1] =
  5. slots1[2] =
  6. slots1[3] =
  7. slots1[4] =
  8. slots1[5] =
  9. slots1[6] = } --
  10. local slots = {}
  11. slots[1] =
  12. slots[2] =
  13. slots[3] =
  14. slots[4] =
  15. slots[5] =
  16. slots[6] =
  17.  
  18. function fuelrod()
  19.  for i,j in pairs(slots) do
  20.   if not p.getStackInSlot(j) then
  21.    p.pullItemIntoSlot("up",4,1,j)
  22.   end
  23.  end
  24. end
  25.  
  26. -- { function reflector()
  27.  for i,l in pairs(slots1) do
  28.   if not p.getStackInSlot(l) then
  29.    p.pullItemIntoSlot("up",i,1,l)
  30.   end
  31.  end
  32. end -- }
  33.  
  34.  
  35. while true do
  36. -- reflector()
  37.  fuelrod()
  38.  sleep(60)
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement