SHARE
TWEET

emergencySwitch.lua

a guest May 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local f = fs.open("settings.txt", "r")
  2. f.readLine()
  3. f.readLine()
  4. local side = f.readLine()
  5.  
  6.  
  7. term.clear()
  8. term.setCursorPos(1,1)
  9.  
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. term.write("Are you sure? (Y/N) ")
  13. local input = read()
  14. if string.lower(input) == "y" then
  15.     rs.setOutput(side, not rs.getOutput(side))
  16. end
  17.  
  18. term.clear()
  19. term.setCursorPos(1,1)
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