Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- conf_x = 5
- conf_y = 5
- function inc(arg)
- return component.proxy(component.list(arg)())
- end
- local r = inc("robot")
- local c = inc("computer")
- local ch = inc("chunkloader")
- -- The bot also needs a chunkloader upgrade installed
- -- 4 Inventory Upgrades and an inventory controller upgrade is recommended
- if not (result = ch.setActive(true)) then
- c.beep(1000, 1)
- c.beep(2000, 1)
- c.stop()
- end
- for x = 1, conf_x, 1 do
- for y = 1, conf_y, 1 do
- r.swing(3)
- if y < conf_y then
- r.move(1)
- end
- end
- if x < conf_x then
- for d = 1, (conf_y - 1), 1 do
- r.move(0)
- end
- r.turn(true)
- r.move(3)
- r.turn(false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement