Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local component = require("component")
  2.  
  3. local BMStand = 1
  4. local InputChest = 0
  5. local OutputSlot = 2
  6. local BMOutSlot = 7
  7. local OutputChest = 5
  8. local ItemCount = 0
  9.  
  10. while (1) do
  11. OutputSlot= 2
  12. ItemCount = 0
  13.  
  14. while (5 > ItemCount) do
  15. ItemCount = 0
  16. for InputSlot = 5, 1, -1 do
  17. ItemCount = ItemCount + component.transposer.getSlotStackSize(InputChest, InputSlot)
  18. end
  19. os.sleep(2)
  20. end
  21.  
  22. for InputSlot = 5, 1, -1 do
  23. for InputItem = 1, component.transposer.getSlotStackSize(InputChest, InputSlot) do
  24. component.transposer.transferItem(InputChest, BMStand, 1, InputSlot, OutputSlot)
  25. OutputSlot = OutputSlot + 1
  26. end
  27. end
  28.  
  29. while (0 == component.transposer.getSlotStackSize(BMStand, BMOutSlot)) do
  30. os.sleep(2)
  31. end
  32.  
  33. component.transposer.transferItem(BMStand, OutputChest, 64, BMOutSlot)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement