Advertisement
Cadevine

_listen2.lua

Jan 20th, 2025 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. event, id, message, messageType = os.pullEvent("rednet_message")
  4. print("Terminal: ",id)
  5. print("Command: ",message)
  6. print("Sub-command: ",messageType)
  7. print()
  8.  
  9. if message == "movement" then
  10.     shell.run("CadeOS/movement.lua",messageType)
  11. elseif message == "rotate" then
  12.     shell.run("CadeOS/rotate.lua",messageType)
  13. elseif message == "cadeMine" then
  14.     shell.run("CadeOS/cadeMine.lua")
  15. elseif message == "cadeMine2" then
  16.     shell.run("CadeOS/cadeMine2",messageType)
  17. end
  18.  
  19. shell.run("CadeOS/alwaysListen.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement