Guest User

startup

a guest
Mar 30th, 2026
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. modem = peripheral.find("modem")
  2. modemside = peripheral.getName(modem)
  3. rednet.open(modemside)
  4.  
  5. while true do
  6.  id, message = rednet.receive()
  7.  words = { ... }
  8.  for word in message:gmatch("%S+") do
  9.   table.insert(words, word)
  10.  end
  11.  if words[1] == "teleport" then
  12.   print(id..", "..message)
  13.   shell.run(message)
  14.  end
  15. end
  16. print("programm end")
  17.  
Advertisement
Add Comment
Please, Sign In to add comment