Advertisement
Guest User

Computercraft starwars movie on/off

a guest
Dec 15th, 2012
8,121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. shell.run('monitor', 'top', 'clear')
  2.  
  3. function waitForRS(n)
  4.   repeat
  5.     os.pullEvent('redstone')
  6.   until rs.testBundledInput('bottom', n)
  7. end
  8.  
  9. function movie()
  10.   shell.run('monitor','top', 'secret/alongtimeago')
  11. end
  12.  
  13. function stop()
  14.   waitForRS(2)
  15. end
  16.  
  17. waitForRS(1)
  18. parallel.waitForAny(movie, stop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement