SHARE
TWEET

Untitled

a guest Mar 26th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("back")
  2. rednet.host("security","glassdoor")
  3.  
  4. while (true) do
  5.     toggle = true
  6.     message = rednet.receive()
  7.     if string.match(message, "toggle") then
  8.         print("Toggling door")
  9.         if (toggle==true) than
  10.             toggle = false
  11.             redstone.setAnalogOutput("left", 0)
  12.                 else
  13.                         toggle = true
  14.                         redstone.setAnalogOutput("left", 8)
  15.          else
  16.          print("Ignoring message")
  17. 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