Advertisement
Dragoon209

debug

Dec 26th, 2023
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | Source Code | 0 0
  1. local display = peripheral.find("monitor")
  2. term.redirect(display)
  3. rednet.open('top')
  4.  
  5. print("Debug started")
  6.  
  7. function waitMsg()
  8. local ID, msg = rednet.receive('debug' )
  9.  
  10. print(ID .. ':'.. tostring(msg))
  11. end
  12.  
  13. while true do waitMsg() end
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement