Advertisement
anto985

Receiver signal redstone

Feb 19th, 2020
138
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("right")
  2. redstone.setOutput("front", false)
  3. Activer = 1
  4.  
  5. function SignalRedstone()
  6.  
  7.     if Activer == (EtatSignRedstone) then
  8.        
  9.         redstone.setOutput("front", true)
  10.  
  11.     else
  12.  
  13.         redstone.setOutput("front", false)
  14.  
  15.     end
  16. end
  17.  
  18. while true do
  19.  
  20.     id,EtatSignRedstone  = rednet.receive()
  21.  
  22.     sleep(0.1)
  23.    
  24.     SignalRedstone()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement