Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local protocol = "diggingTurtle"
- local modemSide = "right"
- function initialize()
- print("initializing network")
- print("commands that are received will be attempted to run")
- rednet.open(modemSide)
- end
- function run()
- initialize()
- id, msg = rednet.receive(protocol)
- print(msg)
- local command = msg["command"]
- local arg = msg["arg"]
- if command ~= "" then
- shell.run(command, arg)
- end
- end
- run()
Add Comment
Please, Sign In to add comment