ThatGravyBoat

Door Controller

Feb 1st, 2022
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. --Door Controller
  2. --Consts--
  3. peripheral.find("modem", rednet.open)
  4.  
  5. while true do
  6. local id, message = rednet.receive()
  7.  
  8. if message == "closeDoor1" then
  9. redstone.setAnalogOutput("left", 15)
  10. elseif message == "closeDoor0" then
  11. redstone.setAnalogOutput("left", 0)
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment