Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("bottom")
- while true do
- --flush anything out of the interactive sorter
- m.sort(3)
- --get a new item
- rs.setOutput("left",true)
- sleep(0.1)
- rs.setOutput("left",false)
- --wait for the item
- event, param = os.pullEvent("isort_item")
- --print the new item ID
- print("Got item with ID "..param)
- --here check if we have some already
- --if not lets add it to the list
- --chuck it out
- m.sort(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment