SHARE
TWEET

startup

a guest Apr 18th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s = peripheral.wrap('top');
  2.  
  3. wasOn = false;
  4.  
  5. while true do
  6.  
  7. if rs.getInput('right') and not wasOn then
  8.     s.speak('Spinning up the reactor...');
  9. end
  10.  
  11. if not rs.getInput('right') and wasOn then    
  12.     s.speak('Disengaging the reactor...');
  13. end
  14.  
  15. wasOn = rs.getInput('right');
  16.  
  17. sleep(1);
  18.  
  19. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top