Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r = require("robot")
- local function chest()
- r.up()
- r.forward()
- r.select(1)
- r.place()
- r.select(2)
- for i = 1, 15 do
- r.suck(64)
- end
- r.select(1)
- r.swing()
- r.select(2)
- r.back()
- r.down()
- end
- local function place()
- while true do
- placebel = r.place()
- if placebel == true then
- break
- else
- if r.select() == 16 then
- chest()
- else
- r.select(r.select()+1)
- end
- end
- end
- end
- r.select(2)
- while true do
- e = r.back()
- if e == true then
- place()
- else
- r.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement