Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- For neuro connector in plethora, can be modified
- local modemSide = "left"
- local protocol = "diggingTurtle"
- local userInput = ""
- function init()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- print("Initializing")
- rednet.open(modemSide)
- end
- function run()
- init()
- while true do
- print("enter command [bore, quarry, exit]")
- local command = read()
- if command == "exit" then
- os.reboot()
- end
- print("")
- print("enter how far")
- local arg = read()
- local packet = {["command"] = command, ["arg"] = arg}
- rednet.broadcast(packet, protocol)
- sleep(.5)
- for i = 1, 10 do
- print("")
- end
- end
- end
- run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement