Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- eS2ExtpE
- shell.run("delete netLib.lua")
- shell.run("pastebin get f3afq6kB netLib.lua")
- os.sleep(1)
- local netLib = require("netLib"):new()
- rednet.open("left")
- repeat
- term.clear()
- print()
- print("Waiting for a message...")
- print()
- id, message = rednet.receive()
- until id
- print("Message recieved, parsing info...")
- local packet = netLib:parsePacket(message)
- print("Message parsed, running cmd '"..packet.cmd.."'...")
- os.sleep(0.5)
- if packet.cmd == "MINE" then
- local a = packet.args
- shell.run("OS/Programs/Turtle/mine.lua "..a[1].." "..a[2].." "..a[3].." "..a[4].." "..a[5].." "..a[6])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement