Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.find("modem")
- modemside = peripheral.getName(modem)
- rednet.open(modemside)
- while true do
- id, message = rednet.receive()
- words = { ... }
- for word in message:gmatch("%S+") do
- table.insert(words, word)
- end
- if words[1] == "teleport" then
- print(id..", "..message)
- shell.run(message)
- end
- end
- print("programm end")
Advertisement
Add Comment
Please, Sign In to add comment