Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = peripheral.wrap("top")
- pushDir = "DOWN"
- sleep(1)
- items = me.getAvailableItems()
- function pullItem(v, pushDir)
- me.exportItem(v, pushDir,1)
- sleep(0.1)
- turtle.dropDown()
- end
- for k, v in pairs(items) do
- if string.find(v.fingerprint.id, "-1") then
- else
- print(v.fingerprint.id)
- v.qty = 1
- v.id = v.fingerprint.id
- if lua_pcall(pullItem, v, pushDir) then
- print("Success")
- else
- print("Failure")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment