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.forward()
- r.turnRight()
- for i=1,17 do
- r.forward()
- r.useDown()
- r.useDown()
- end
- r.turnAround()
- for i=1,17 do
- r.forward()
- r.useDown()
- r.useDown()
- end
- r.turnLeft()
- r.forward()
- for k = 1, 16 do --перебираем все слоты с ресурсами
- r.select(k) --выбираем слот под индексом к
- r.drop() --выгружаем все ресурсы вниз а если нет сундука то выбрасываем на пол
- end
- r.turnAround()
- os.sleep(50)
- end
Advertisement
Add Comment
Please, Sign In to add comment