Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot")
- local comp = require("component")
- local computer = require("computer")
- while true do
- r.use()
- if r.count(16)>0 then
- for k = 2, 16 do --перебираем все слоты с ресурсами
- r.select(k) --выбираем слот под индексом к
- r.dropDown() --выгружаем все ресурсы вниз а если нет сундука то выбрасываем на пол
- end
- r.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment