Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = peripheral.wrap('top');
- wasOn = false;
- while true do
- if rs.getInput('right') and not wasOn then
- s.speak('Spinning up the reactor...');
- end
- if not rs.getInput('right') and wasOn then
- s.speak('Disengaging the reactor...');
- end
- wasOn = rs.getInput('right');
- sleep(1);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement