Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function transferChildProgram()
- getInvoItem("CC%-Peripheral")
- up()
- turtle.place()
- getInvoItem("disk")
- turtle.drop()
- local h = fs.open("disk/startup", "w")
- local currentLabel = os.getComputerLabel()
- currentLabel = currentLabel:gsub("%-", "_")
- h.writeLine([[
- turtle.left()
- turtle.left()
- shell.run("pastebin get 7a4sZAXm run")
- local h = fs.open("startup", "w")
- h.writeLine("shell.run(\"run\")")
- h.close()
- os.setComputerLabel("]]..currentLabel.."-"..version..[[")
- ]])
- h.close()
- version = version + 1
- down()
- getInvoItem("CC%-Turtle")
- turtle.place()
- peripheral.wrap("front").turnOn()
- sleep(2)
- up()
- turtle.suck()
- turtle.dig()
- down()
- peripheral.wrap("front").reboot()
- back()
- end
- transferChildProgram()
Add Comment
Please, Sign In to add comment