Advertisement
anto985

PC BOUTTON MODEM 2

Feb 24th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. rednet.open("left")
  2. redstone.setOutput("front", false)
  3. Activer = 1
  4.  
  5.  
  6. function SignalRedstone()
  7.  
  8.     if Activer == (EtatPorte) then
  9.        
  10.         redstone.setOutput("front", true)
  11.    
  12.     else
  13.        
  14.         redstone.setOutput("front", false)
  15.  
  16.     end
  17.  
  18. end
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. while true do
  26.  
  27.     id,EtatPorte  = rednet.receive()
  28.  
  29.     sleep(0.1)
  30.    
  31.     SignalRedstone()
  32.  
  33.  
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement