william200027

Porte

Jan 28th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. IdSend = 15
  2. IdRequest = 20
  3. rednet.open("right")
  4. redstone.setOutput("back",true)
  5.  
  6. while true do
  7.  
  8. id,message = rednet.receive()
  9.  
  10.  if id == IdRequest and message == "On" then
  11.   redstone.setOutput("back",false)
  12.    rednet.send(IdSend,"On")
  13.   sleep(2)
  14.   redstone.setOutput("back",true)
  15.    rednet.send(IdSend,"Off")
  16.  end
  17. end
  18.  
  19. ----=Autor=----
  20. --By Zaidal86
  21. ----=-----=----
Add Comment
Please, Sign In to add comment