Advertisement
NTins

DoorOpener

Feb 8th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. write('Welcome to Door Opener by Netins! Please write output side:')
  2. a=read()
  3. rs.setOutput(a,true)
  4. while true do
  5. if rs.getInput('top')==true then
  6. rs.setOutput(a,false)
  7. sleep(3)
  8. rs.setOutput(a, true)
  9. end
  10. sleep(1)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement