Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- function upload()
- if robot.count(1)<1 then
- robot.suckUp()
- else
- breackrud()
- end
- end
- function breackrud()
- for i = 0, 10 do
- if robot.detect() == false then
- robot.place()
- else
- robot.swing()
- end
- end
- end
- function unload()
- for c = 1, 15 do
- robot.select(c)
- if robot.count() > 0 then
- robot.dropDown()
- end
- end
- robot.select(1)
- upload()
- end
- while true do
- upload()
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement