Advertisement
ergoplato

makeMagnets

Jan 27th, 2022
1,208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local chest = peripheral.wrap("right")
  2. local size = chest.getInventorySize()
  3. local wait = 10
  4.  
  5. while(true) do
  6.   for k = 1, size do
  7.     local stack = chest.getStackInSlot(k)
  8.     if stack ~= nil then
  9.       local qty = stack["qty"]/4
  10.       for i = 1, qty do
  11.         for j = 1, 4 do
  12.           chest.pushItemIntoSlot("down", k, 1, j)
  13.         end
  14.       end
  15.     end
  16.   end
  17.   sleep(wait)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement