SHARE
TWEET

Receiver signal redstone

anto985 Feb 19th, 2020 (edited) 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top