Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- local term = require("term")
- local computer = require("computer")
- local component = require("component")
- local sides = require("sides")
- local function Sleepy()
- while computer.energy() < 20000 do
- os.sleep(20)
- end
- end
- local function DumpAll()
- for i = 1, robot.inventorySize() do
- robot.select(i)
- robot.drop()
- end
- robot.select(1);
- Sleepy()
- end
- infront = true
- while (infront ~= "passable") do
- useless, infront = robot.detect()
- robot.turnRight()
- end
- robot.turnLeft()
- while true do
- DumpAll()
- robot.turnAround()
- robot.suck()
- robot.turnRight()
- for h=1,64 do
- robot.place()
- robot.swing()
- end
- robot.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement