Advertisement
Lukyrouge22

Remote

Mar 9th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. local modem = peripheral.wrap("bottom")
  2.  
  3. modem.open(1)
  4.  
  5. while true do
  6. local e, ms, sc, rc, msg, sd = os.pullEvent("modem_message")
  7. if (msg == "stop") then modem.closeAll()
  8. elseif (msg == "open_outside_door") then redstone.setOutput("back", true)
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement