Advertisement
ecco7777

CC chat -> rednet

Jul 27th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. c=peripheral.wrap("left")
  2. rednet.open("right")
  3. while true do
  4. event,player,message=os.pullEvent("chat")
  5. if string.sub(message,1,#"goTo ")=="goTo " then
  6. rednet.broadcast(message)
  7. end
  8. sleep(1)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement