Advertisement
Guest User

bridge

a guest
Oct 23rd, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. side = "right";
  2.  
  3.  
  4. --just some stuff to make it more effective
  5. rs.setOutput("bottom", true)
  6.  
  7. repeat
  8. p = peripheral.wrap(side)
  9. evt, cmd = os.pullEvent();
  10. if evt == "chat_command" then
  11. --Do the commands
  12. ----Example command
  13.   if cmd == "LMI" then--Shorter version of (Let Me In)
  14.     rs.setOutput("bottom",false)
  15.     sleep(10)
  16.     rs.setOutput("bottom",true)
  17.   end
  18. ----End of example command
  19.  
  20.  
  21.  
  22. --End of the commands
  23. end
  24. until(Exit == true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement