Advertisement
aidenmagrath

Extract

Jul 24th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. sorter = peripheral.wrap("bottom")
  2. while true do
  3.   sleep(0)
  4.   for uuid, amount in pairs(sorter.list(0)) do
  5.     if amount <= 64 then
  6.       sorter.extract(0, uuid, 4, amount)
  7.     else
  8.       sorter.extract(0, uuid, 4, 64)
  9.     end
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement