Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --robot-wither
- os=require('os')
- term=require('term')
- math=require('math')
- c=require('component')
- r=c.proxy(c.list('robo')())
- term.clear()
- local s,t,p,m =r.suck,r.turn,r.place,r.move
- while math.huge do
- r.select(1)
- t(false)
- s(3,4)
- t(true)
- t(true)
- s(3,3)
- t(false)
- while (not p(3)) do end
- while (not m(1)) do end
- while (not p(3)) do end
- t(false)
- while (not m(3)) do end
- t(true)
- while (not p(3)) do end
- t(true)
- while (not m(3)) do end
- while (not m(3)) do end
- t(false)
- while (not p(3)) do end
- r.select(2)
- while (not m(1)) do end
- while (not p(3)) do end
- t(false)
- while (not m(3)) do end
- t(true)
- while (not p(3)) do end
- t(false)
- while (not m(3)) do end
- t(true)
- while (not p(3)) do end
- t(true)
- while (not m(3)) do end
- while (not m(0)) do end
- while (not m(0)) do end
- t(false)
- os.sleep(30)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement