slippie05

ModemReceive

May 4th, 2021
562
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function farbe(farben)
  2.  
  3. rs.setBundledOutput("left", farben)
  4.  
  5. end
  6.  
  7.  
  8.  
  9. while true do
  10. farbe(0)
  11.  
  12.   while true do
  13.  
  14.   local modem = peripheral.wrap("right")
  15.   modem.open(15)
  16.  
  17.  
  18.    
  19.       local event, modemSide, senderChannel, replyChannel, message,
  20.         senderDistance = os.pullEvent("modem_message")
  21.    
  22.      
  23.       print(message)
  24.       farbe(0)
  25.       farbe(message)
  26.      
  27.    
  28.     sleep(0.3)
  29.    
  30.     --farbe(0)
  31.   end
  32.  
  33. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×