Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- local receivers = {"55, X:-16000 Z:8000"}
- if #tArgs < 2 then
- if #tArgs < 1 then
- print("Usage: tp <id> <key>")
- print(textutils.serialise(receivers))
- return
- else
- print("missing key")
- print("Usage: tp <id> <key>")
- return
- end
- end
- modem = peripheral.find("modem")
- if not modem then
- print("no modem found")
- return
- end
- modemside = peripheral.getName(modem)
- rednet.open(modemside)
- id=tonumber(tArgs[1])
- message="teleport luca "..tArgs[2]
- rednet.send(id,message)
Advertisement
Add Comment
Please, Sign In to add comment