Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- local component = require("component")
- function restack()
- for i=1,16 do
- if robot.count(i) > 0 then
- robot.select(i)
- component.inventory_controller.equip()
- break
- end
- end
- end
- for n=0,22 do
- for i=0,3 do
- for j=0, 52-n do
- robot.useUp()
- robot.forward()
- end
- restack()
- robot.turnRight()
- end
- robot.forward()
- robot.turnLeft()
- robot.back()
- robot.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement