Guest User

tp.lua

a guest
Mar 30th, 2026
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local tArgs = { ... }
  2. local receivers = {"55, X:-16000 Z:8000"}
  3.  
  4. if #tArgs < 2 then
  5.  if #tArgs < 1 then
  6.   print("Usage: tp <id> <key>")
  7.   print(textutils.serialise(receivers))
  8.   return
  9.  else
  10.   print("missing key")
  11.   print("Usage: tp <id> <key>")
  12.  return
  13.  end
  14. end
  15.  
  16. modem = peripheral.find("modem")
  17. if not modem then
  18.  print("no modem found")
  19.  return
  20. end
  21. modemside = peripheral.getName(modem)
  22. rednet.open(modemside)
  23. id=tonumber(tArgs[1])
  24. message="teleport luca "..tArgs[2]
  25. rednet.send(id,message)
  26.  
Advertisement
Add Comment
Please, Sign In to add comment