Advertisement
Guest User

startup

a guest
Jun 29th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. rednet.open("top")
  2. reactor = ("lefth")
  3.  
  4. while true do
  5.   print("Esperando mensaje...")
  6.   id, msg = rednet.receive()
  7.  
  8.   if (id == 6) then
  9.  
  10.     if msg == "ON" then
  11.       redstone.setOutput("left" ,true)
  12.       print("Reactor encendido")
  13.     elseif msg == "OFF" then
  14.       redstone.setOutput("left" ,false)
  15.       print("Reactor apagado")
  16.     end
  17.    
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement