Advertisement
TeoremaPi

Recibir datos

Apr 12th, 2020
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. while true do
  4.     senderId, message, protocol = rednet.receive()
  5.  
  6.     print(message)
  7.  
  8.  
  9.     if message == "Encendido" then
  10.     redstone.setOutput("right", true)
  11.     else
  12.     redstone.setOutput("right", false)
  13.     end
  14.  
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement