Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("You id: ",os.computerID())
- write"Turtle id: "
- id = read()
- id = tonumber(id)
- term.clear()
- term.setCursorPos(1,1)
- print(os.computerID()," --> ",id)
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- local function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- while true do
- clear()
- print(os.computerID()," --> ",id)
- print("--------------------------")
- term.setCursorPos(1,3)
- print"Enter a command to turtle:"
- com = read()
- rednet.send(id,com)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement