Guest User

reactor

a guest
Feb 24th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. reactor = peripheral.find("BigReactors-Reactor")
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. sleep(1)
  5.  
  6. print("Please Write on To Turn Reactors On, off To Turn Off")
  7. input = read()
  8.     if input == "on" then
  9.       print("Turning On Reactors")
  10.       reactor.setActive(true)
  11.     elseif input == "off" then
  12.       print("Turning Off Reactors")
  13.       reactor.setActive(false)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment